common
Class DefaultMapEntry

java.lang.Object
  extended by 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.


Constructor Summary
DefaultMapEntry(java.util.Map.Entry entry)
           
DefaultMapEntry(java.lang.Object key, java.lang.Object value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 java.lang.Object setValue(java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapEntry

public DefaultMapEntry(java.lang.Object key,
                       java.lang.Object value)

DefaultMapEntry

public DefaultMapEntry(java.util.Map.Entry entry)
Method Detail

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