|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.KeyValuePair<K,V>
public class KeyValuePair<K,V>
A generic Map.Entry class, useful for returning key-value-like results.
Field Summary | |
---|---|
(package private) K |
key
|
(package private) V |
value
|
Constructor Summary | |
---|---|
KeyValuePair(K k,
V v)
|
Method Summary | |
---|---|
K |
getKey()
Returns the key corresponding to this entry. |
V |
getValue()
Returns the value corresponding to this entry. |
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified value (optional operation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Field Detail |
---|
final K key
final V value
Constructor Detail |
---|
public KeyValuePair(K k, V v)
Method Detail |
---|
public K getKey()
getKey
in interface java.util.Map.Entry<K,V>
public V getValue()
getValue
in interface java.util.Map.Entry<K,V>
public V setValue(V value)
setValue
in interface java.util.Map.Entry<K,V>
value
- new value to be stored in this entry.
java.lang.UnsupportedOperationException
- if the put operation
is not supported by the backing map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |