|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.util.KeyValue<K,V>
public class KeyValue<K,V>
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 |
|---|
protected K key
protected V value
| Constructor Detail |
|---|
public KeyValue()
public KeyValue(K key,
V value)
| Method Detail |
|---|
public void setKey(K key)
public K getKey()
public V getValue()
public void setValue(V value)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||