common
Class DefaultMapEntry
java.lang.Object
common.DefaultMapEntry
- All Implemented Interfaces:
- java.util.Map.Entry
public class DefaultMapEntry
- extends java.lang.Object
- implements java.util.Map.Entry
Default implementation of the Map.Entry interface. It stores the key and
value in member variables, and does not support the setValue operation.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DefaultMapEntry
public DefaultMapEntry(java.lang.Object key,
java.lang.Object value)
DefaultMapEntry
public DefaultMapEntry(java.util.Map.Entry entry)
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface java.util.Map.Entry
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface java.util.Map.Entry
setValue
public java.lang.Object setValue(java.lang.Object newValue)
- Specified by:
setValue
in interface java.util.Map.Entry
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Map.Entry
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map.Entry
- Overrides:
hashCode
in class java.lang.Object