T1 - the type of the first element of the pairT2 - the type of the second element of the pair@Deprecated
public class Pair<T1,T2>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
T1 |
a
Deprecated.
The first element of the pair.
|
T2 |
b
Deprecated.
The second element of the pair.
|
| Constructor and Description |
|---|
Pair(T1 a,
T2 b)
Deprecated.
Make a new pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
static <A,B> Pair<A,B> |
of(A a,
B b)
Deprecated.
Factory method with short name and no need to name type parameters.
|
java.lang.String |
toString()
Deprecated.
|
public T1 a
public T2 b
public static <A,B> Pair<A,B> of(A a, B b)
A - type of first argumentB - type of second argumenta - first argumentb - second argumentpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object