|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectPair<T1,T2>
public class Pair<T1,T2>
Simple pair class.
| Field Summary | |
|---|---|
T1 |
a
|
T2 |
b
|
| Constructor Summary | |
|---|---|
Pair(T1 a,
T2 b)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
int |
hashCode()
|
|
static
|
of(A a,
B b)
Factory method with short name and no need to name type parameters. |
|
String |
toString()
|
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public T1 a
public T2 b
| Constructor Detail |
|---|
public Pair(T1 a,
T2 b)
| Method Detail |
|---|
public static <A,B> Pair<A,B> of(A a,
B b)
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||