|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.Pair<K,V>
K - the key-type of the pair.V - the value-type of the pair.public final class Pair<K,V>
An immutable pair of key and value. A pair is considered to be
equal to another pair if both the key and the value are equal.
| Constructor Summary | |
|---|---|
Pair(K k,
V v)
Creates a new instance with the given key and value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
K |
getKey()
Returns the key. |
V |
getValue()
Returns the value. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(K k,
V v)
k - the key. May be null.v - the value. May be null.| Method Detail |
|---|
public K getKey()
public V getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||