Class AbstractMapEntryDecorator<K,V>
- java.lang.Object
-
- org.apache.openjpa.lib.util.collections.AbstractMapEntryDecorator<K,V>
-
- Type Parameters:
K- the type of keysV- the type of mapped values
- All Implemented Interfaces:
java.util.Map.Entry<K,V>,KeyValue<K,V>
- Direct Known Subclasses:
AbstractDualBidiMap.MapEntry
public abstract class AbstractMapEntryDecorator<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>, KeyValue<K,V>
Provides a base decorator that allows additional functionality to be added to aMap.Entry.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description AbstractMapEntryDecorator(java.util.Map.Entry<K,V> entry)Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)KgetKey()Gets the key from the pair.protected java.util.Map.Entry<K,V>getMapEntry()Gets the map being decorated.VgetValue()Gets the value from the pair.inthashCode()VsetValue(V object)java.lang.StringtoString()
-
-
-
Method Detail
-
getMapEntry
protected java.util.Map.Entry<K,V> getMapEntry()
Gets the map being decorated.- Returns:
- the decorated map
-
getValue
public V getValue()
Description copied from interface:KeyValueGets the value from the pair.
-
equals
public boolean equals(java.lang.Object object)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-