java.util
Class HashMap.Entry

java.lang.Object
  |
  +--java.util.HashMap.Entry

private static class HashMap.Entry
extends Object
implements Map.Entry

HashMap collision list entry.


Field Summary
(package private)  int hash
           
(package private)  Object key
           
(package private)  HashMap.Entry next
           
(package private)  Object value
           
 
Constructor Summary
(package private) HashMap.Entry(int hash, Object key, Object value, HashMap.Entry next)
           
 
Method Summary
protected  Object clone()
           
 boolean equals(Object o)
           
 Object getKey()
           
 Object getValue()
           
 int hashCode()
           
 Object setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

hash

int hash

key

Object key

value

Object value

next

HashMap.Entry next
Constructor Detail

HashMap.Entry

HashMap.Entry(int hash,
              Object key,
              Object value,
              HashMap.Entry next)
Method Detail

clone

protected Object clone()
Overrides:
clone in class Object

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object