Class AbstractMapEntryDecorator<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.keyvalue.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>
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 Detail
-
getValue
public V getValue()
Description copied from interface:KeyValue
Gets the value from the pair.
-
equals
public boolean equals(java.lang.Object object)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-