⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.map

Class AbstractHashedMap.HashEntry

java.lang.Object
|
+--org.apache.commons.collections.map.AbstractHashedMap.HashEntry
Enclosing Class:

All Implemented Interfaces:
Map.Entry,
KeyValue

Known Direct Subclasses:
AbstractLinkedMap.LinkEntry, IdentityMap.IdentityEntry


protected static class AbstractHashedMap.HashEntry
extends java.lang.Object
implements Map.Entry, KeyValue

HashEntry used to store the data

Field Summary

int

hashCode

The hash code of the key

Object

key

The key

AbstractHashedMap.HashEntry

next

The next entry in the hash chain

Object

value

The value

Constructor Summary

HashEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)

Method Summary

boolean

equals(Object obj)

Object

getKey()

Object

getValue()

int

hashCode()

Object

setValue(Object value)

String

toString()

Field Details

hashCode

protected int hashCode

The hash code of the key


key

protected Object key

The key


next

protected AbstractHashedMap.HashEntry next

The next entry in the hash chain


value

protected Object value

The value

Constructor Details

HashEntry

protected HashEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)

Parameters:
next
hashCode
key
value

Method Details

equals

public boolean equals(Object obj)

Parameters:
obj

getKey

public Object getKey()


getValue

public Object getValue()


hashCode

public int hashCode()


setValue

public Object setValue(Object value)

Parameters:
value

toString

public String toString()