- Direct Known Subclasses:
Triplet
public class Pair<T1,T2>
extends Object
- Author:
- Eike Stepper
-
Constructor Summary
Constructors
-
Method Summary
static <T1,
T2> Pair<T1,T2>
static <T1,
T2> Pair<T1,T2>
create(T1 element1,
T2 element2)
boolean
int
void
void
-
Constructor Details
-
-
Pair
public Pair(T1 element1,
T2 element2)
-
-
Method Details
-
getElement1
public final T1 getElement1()
-
setElement1
public void setElement1(T1 element1)
-
getElement2
public final T2 getElement2()
-
setElement2
public void setElement2(T2 element2)
-
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- Since:
- 2.0
-
-
-
create
public static <T1,
T2> Pair<T1,T2> create()
- Since:
- 3.3
-
create
public static <T1,
T2> Pair<T1,T2> create(T1 element1,
T2 element2)
- Since:
- 3.3