Class AbstractMapEntryDecorator
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
-
-
Constructor Summary
Constructors Constructor Description AbstractMapEntryDecorator(java.util.Map.Entry entry)Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.ObjectgetKey()Gets the key from the pair.java.lang.ObjectgetValue()Gets the value from the pair.inthashCode()java.lang.ObjectsetValue(java.lang.Object object)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Description copied from interface:KeyValueGets the key from the pair.
-
getValue
public java.lang.Object getValue()
Description copied from interface:KeyValueGets the value from the pair.
-
setValue
public java.lang.Object setValue(java.lang.Object object)
- Specified by:
setValuein interfacejava.util.Map.Entry
-
equals
public boolean equals(java.lang.Object object)
- Specified by:
equalsin interfacejava.util.Map.Entry- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map.Entry- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-