blob: 84c9d8efe4060d660e1c2742cace6427e0347603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/******************************************************************************
* Top contributors (to current version):
* Mudathir Mohamed
*
* This file is part of the cvc5 project.
*
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
* in the top-level source directory and their institutional affiliations.
* All rights reserved. See the file COPYING in the top-level source
* directory for licensing information.
* ****************************************************************************
*
* The cvc5 java API.
*/
package cvc5;
public class Pair<K, V>
{
public K first;
public V second;
public Pair(K first, V second)
{
this.first = first;
this.second = second;
}
@Override public boolean equals(Object pair)
{
if (this == pair)
return true;
if (pair == null || getClass() != pair.getClass())
return false;
Pair<K, V> p = (Pair<K, V>) pair;
return first.equals(p.first) && second.equals(p.second);
}
}
|