core
Class Tuple<K,V>

java.lang.Object
  extended by core.Tuple<K,V>

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

A generic key-value tuple.


Constructor Summary
Tuple(K key, V value)
          Creates a new tuple.
 
Method Summary
 K getKey()
          Returns the key
 V getValue()
          Returns the value
 java.lang.String toString()
          Returns a string representation of the tuple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(K key,
             V value)
Creates a new tuple.

Parameters:
key - The key of the tuple
value - The value of the tuple
Method Detail

getKey

public K getKey()
Returns the key

Returns:
the key

getValue

public V getValue()
Returns the value

Returns:
the value

toString

public java.lang.String toString()
Returns a string representation of the tuple

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the tuple