Class AbstractKeyValue<K,V>
java.lang.Object
org.apache.openjpa.lib.util.collections.AbstractKeyValue<K,V>
- Type Parameters:
K
- the type of keysV
- the type of values
- All Implemented Interfaces:
KeyValue<K,
V>
- Direct Known Subclasses:
AbstractMapEntry
Abstract pair class to assist with creating
KeyValue
and Map.Entry
implementations.- Since:
- 3.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractKeyValue
(K key, V value) Constructs a new pair with the specified key and given value. -
Method Summary
-
Constructor Details
-
AbstractKeyValue
Constructs a new pair with the specified key and given value.- Parameters:
key
- the key for the entry, may be nullvalue
- the value for the entry, may be null
-
-
Method Details
-
getKey
Gets the key from the pair. -
setKey
-
getValue
Gets the value from the pair. -
setValue
-
toString
Gets a debugging String view of the pair.
-