|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.util.Pair<T,V>
public final class Pair<T,V>
Denotes a pair of things with possible different types.
Constructor Summary | |
---|---|
Pair(T aLeft,
V aRight)
Creates a new Pair instance. |
Method Summary | ||
---|---|---|
boolean |
equals(Object aObject)
|
|
T |
getLeft()
|
|
V |
getRight()
|
|
int |
hashCode()
|
|
static
|
of(T aLeft,
V aRight)
Factory method to create a new pair of two given values. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pair(T aLeft, V aRight)
aLeft
- the left-hand side of this pair;aRight
- the right-hand side of this pair.Method Detail |
---|
public static <T,V> Pair<T,V> of(T aLeft, V aRight)
aLeft
- the left-hand side of the pair;aRight
- the right-hand side of the pair.
null
.public boolean equals(Object aObject)
equals
in class Object
public T getLeft()
null
.public V getRight()
null
.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |