public class Pair<K,V> extends java.lang.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(java.lang.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) |
java.lang.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(java.lang.Object o)
public int hashCode()
public int compareTo(Entry entry)
compareTo in interface java.lang.Comparable<Entry>public java.lang.String toString()
toString in class java.lang.Objectpublic void setFirst(K first)
public void setSecond(V v)
Copyright © 2014. All Rights Reserved.