jodd.util
Class KeyValue<K,V>

java.lang.Object
  extended by jodd.util.KeyValue<K,V>

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

Simple key-value holder.


Field Summary
protected  K key
           
protected  V value
           
 
Constructor Summary
KeyValue()
           
KeyValue(K key, V value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
          Returns a key.
 V getValue()
          Returns a value.
 int hashCode()
           
 void setKey(K key)
          Sets a key.
 void setValue(V value)
          Sets a value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected K key

value

protected V value
Constructor Detail

KeyValue

public KeyValue()

KeyValue

public KeyValue(K key,
                V value)
Method Detail

setKey

public void setKey(K key)
Sets a key.


getKey

public K getKey()
Returns a key.


getValue

public V getValue()
Returns a value.


setValue

public void setValue(V value)
Sets a value.


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


Copyright © 2003-2012 Jodd Team