public class Pair<K,V> extends Object implements Entry<K,V>
| Constructor and Description |
|---|
Pair() |
Pair(Entry<K,V> entry) |
Pair(K k,
V v) |
Pair(Pair<K,V> impl) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Entry entry) |
static <K,V> Entry<K,V> |
entry(Entry<K,V> entry) |
static <K,V> Entry<K,V> |
entry(K k,
V v) |
boolean |
equals(Entry entry) |
boolean |
equals(Object o) |
K |
getFirst() |
K |
getKey() |
V |
getSecond() |
V |
getValue() |
int |
hashCode() |
K |
key() |
static <K,V> Pair<K,V> |
pair(K k,
V v) |
void |
setFirst(K first) |
void |
setSecond(V v) |
V |
setValue(V value) |
String |
toString() |
V |
value() |
public static <K,V> Entry<K,V> entry(K k, V v)
public static <K,V> Pair<K,V> pair(K k, V v)
public K getFirst()
public V getSecond()
public boolean equals(Object o)
public int hashCode()
public int compareTo(Entry entry)
compareTo in interface Comparable<Entry>public void setFirst(K first)
public void setSecond(V v)
Copyright © 2015. All Rights Reserved.