public final class Pair<T,V> extends Object
Constructor and Description |
---|
Pair(T aLeft,
V aRight)
Creates a new Pair instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aObject) |
T |
getLeft() |
V |
getRight() |
int |
hashCode() |
static <T,V> Pair<T,V> |
of(T aLeft,
V aRight)
Factory method to create a new pair of two given values.
|
String |
toString() |
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 T getLeft()
null
.public V getRight()
null
.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.