org.codehaus.plexus.util

Class FastMap.EntryImpl

private static final class FastMap.EntryImpl extends Object implements Entry

This class represents a {@link FastMap} entry.
Field Summary
FastMap.EntryImpl_after
Holds the entry added after this entry or the next available entry when in pool.
FastMap.EntryImpl_before
Holds the entry added before this entry (null when in pool).
int_index
Holds the bucket index (undefined when in pool).
Object_key
Holds the entry key (null when in pool).
FastMap.EntryImpl_next
Holds the next entry in the same bucket (null when in pool).
FastMap.EntryImpl_previous
Holds the previous entry in the same bucket (null when in pool).
Object_value
Holds the entry value (null when in pool).
Method Summary
booleanequals(Object that)
Indicates if this entry is considered equals to the specified entry.
ObjectgetKey()
Returns the key for this entry.
ObjectgetValue()
Returns the value for this entry.
inthashCode()
Returns the hash code for this entry.
ObjectsetValue(Object value)
Sets the value for this entry.
StringtoString()
Returns the text representation of this entry.

Field Detail

_after

private FastMap.EntryImpl _after
Holds the entry added after this entry or the next available entry when in pool.

_before

private FastMap.EntryImpl _before
Holds the entry added before this entry (null when in pool).

_index

private int _index
Holds the bucket index (undefined when in pool).

_key

private Object _key
Holds the entry key (null when in pool).

_next

private FastMap.EntryImpl _next
Holds the next entry in the same bucket (null when in pool).

_previous

private FastMap.EntryImpl _previous
Holds the previous entry in the same bucket (null when in pool).

_value

private Object _value
Holds the entry value (null when in pool).

Method Detail

equals

public boolean equals(Object that)
Indicates if this entry is considered equals to the specified entry.

Parameters: that the object to test for equality.

Returns: true if both entry are considered equal; false otherwise.

getKey

public Object getKey()
Returns the key for this entry.

Returns: the entry's key.

getValue

public Object getValue()
Returns the value for this entry.

Returns: the entry's value.

hashCode

public int hashCode()
Returns the hash code for this entry.

Returns: this entry's hash code.

setValue

public Object setValue(Object value)
Sets the value for this entry.

Parameters: value the new value.

Returns: the previous value.

toString

public String toString()
Returns the text representation of this entry.

Returns: this entry's textual representation.