org.apache.pivot.collections
Class Dictionary.Pair<K,V>

java.lang.Object
  extended by org.apache.pivot.collections.Dictionary.Pair<K,V>
All Implemented Interfaces:
Serializable
Enclosing interface:
Dictionary<K,V>

public static final class Dictionary.Pair<K,V>
extends Object
implements Serializable

Class representing a key/value pair.

See Also:
Serialized Form

Field Summary
 K key
           
 V value
           
 
Constructor Summary
Dictionary.Pair(K key, V value)
           
 
Method Summary
 boolean equals(Object object)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public final K key

value

public final V value
Constructor Detail

Dictionary.Pair

public Dictionary.Pair(K key,
                       V value)
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object