public class Pair<K,V> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Pair<K,V> |
create(K element0,
V element1) |
K |
element0() |
Pair<K,V> |
element0(K element0) |
V |
element1() |
Pair<K,V> |
element1(V element1) |
static <K,V> Pair<K,V> |
empty() |
boolean |
equals(Object o)
Checks the two objects for equality by delegating to their respective
Object.equals(Object) methods. |
int |
hashCode()
Compute a hash code using the hash codes of the underlying objects
|
boolean |
isEmpty() |
public static <K,V> Pair<K,V> create(K element0, V element1)
public K element0()
public V element1()
public boolean isEmpty()
public static <K,V> Pair<K,V> empty()
public boolean equals(Object o)
Object.equals(Object) methods.Copyright © 2014. All rights reserved.