edu.umd.cloud9.util
Class KeyValuePair<K extends WritableComparable,V extends Writable>

java.lang.Object
  extended by edu.umd.cloud9.util.KeyValuePair<K,V>
Type Parameters:
K - type of the key
V - type of the value

public class KeyValuePair<K extends WritableComparable,V extends Writable>
extends Object

Class representing a key-value pair.


Constructor Summary
KeyValuePair(K key, V value)
          Creates a new key-value pair.
 
Method Summary
 K getKey()
          Returns the key.
 V getValue()
          Returns the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValuePair

public KeyValuePair(K key,
                    V value)
Creates a new key-value pair.

Parameters:
key - the key
value - the value
Method Detail

getKey

public K getKey()
Returns the key.

Returns:
the key

getValue

public V getValue()
Returns the value.

Returns:
the value