java.util
Class HashMap.Entry<K,V>

java.lang.Object
  extended by java.util.HashMap.Entry<K,V>
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
HashMap<K,V>

public static class HashMap.Entry<K,V>
extends Object
implements Map.Entry<K,V>


Method Summary
 boolean equals(Object o)
          Compares the specified object with this entry for equality.
 K getKey()
          Returns the key corresponding to this entry.
 V getValue()
          Returns the value corresponding to this entry.
 int hashCode()
          Returns the hash code value for this map entry.
 V setValue(V newValue)
          Replaces the value corresponding to this entry with the specified value (optional operation).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public final K getKey()
Description copied from interface: Map.Entry
Returns the key corresponding to this entry.

Specified by:
getKey in interface Map.Entry<K,V>

getValue

public final V getValue()
Description copied from interface: Map.Entry
Returns the value corresponding to this entry.

Specified by:
getValue in interface Map.Entry<K,V>

setValue

public final V setValue(V newValue)
Description copied from interface: Map.Entry
Replaces the value corresponding to this entry with the specified value (optional operation).

Specified by:
setValue in interface Map.Entry<K,V>

equals

public final boolean equals(Object o)
Description copied from interface: Map.Entry
Compares the specified object with this entry for equality.

Specified by:
equals in interface Map.Entry<K,V>
Overrides:
equals in class Object

hashCode

public final int hashCode()
Description copied from interface: Map.Entry
Returns the hash code value for this map entry.

Specified by:
hashCode in interface Map.Entry<K,V>
Overrides:
hashCode in class Object

toString

public final String toString()
Overrides:
toString in class Object