org.eclipse.xtext.xbase.lib
Class Pair<K,V>

java.lang.Object
  extended by org.eclipse.xtext.xbase.lib.Pair<K,V>

public final class Pair<K,V>
extends java.lang.Object

An immutable pair of key and value.

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
Pair(K k, V v)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(K k,
            V v)
Method Detail

getKey

public K getKey()

getValue

public V getValue()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object