org.apache.commons.collections.map

Class AbstractHashedMap.HashEntry

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

HashEntry used to store the data.

If you subclass AbstractHashedMap but not HashEntry then you will not be able to access the protected fields. The entryXxx() methods on AbstractHashedMap exist to provide the necessary access.

Field Summary
protected inthashCode
The hash code of the key
protected Objectkey
The key
protected AbstractHashedMap.HashEntrynext
The next entry in the hash chain
protected Objectvalue
The value
Constructor Summary
protected HashEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)
Method Summary
booleanequals(Object obj)
ObjectgetKey()
ObjectgetValue()
inthashCode()
ObjectsetValue(Object value)
StringtoString()

Field Detail

hashCode

protected int hashCode
The hash code of the key

key

protected Object key
The key

protected AbstractHashedMap.HashEntry next
The next entry in the hash chain

value

protected Object value
The value

Constructor Detail

HashEntry

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

Method Detail

equals

public boolean equals(Object obj)

getKey

public Object getKey()

getValue

public Object getValue()

hashCode

public int hashCode()

setValue

public Object setValue(Object value)

toString

public String toString()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.