|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.acorn.util.GettableKeyValue<K,V>
K
- the key type.V
- the value type.public class GettableKeyValue<K,V>
A gettable implementation of KeyValue.
Constructor Summary | |
---|---|
GettableKeyValue(K k,
V v)
Constructs a specific key value. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object other)
|
K |
getKey()
Gets the key. |
V |
getValue()
Gets the value. |
int |
hashCode()
|
void |
setKey(K k)
Sets the key. |
void |
setValue(V v)
Sets the value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GettableKeyValue(K k, V v)
k
- the key.v
- the value.Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public Object clone()
clone
in class Object
public K getKey()
KeyValue
getKey
in interface KeyValue<K,V>
public void setKey(K k)
KeyValue
setKey
in interface KeyValue<K,V>
k
- the key.public V getValue()
KeyValue
getValue
in interface KeyValue<K,V>
public void setValue(V v)
KeyValue
setValue
in interface KeyValue<K,V>
v
- the value.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |