Package org.codehaus.plexus.util
Class FastMap.EntryImpl<K,V>
- java.lang.Object
-
- org.codehaus.plexus.util.FastMap.EntryImpl<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private FastMap.EntryImpl_afterHolds the entry added after this entry or the next available entry when in pool.private FastMap.EntryImpl_beforeHolds the entry added before this entry (null when in pool).private int_indexHolds the bucket index (undefined when in pool).private K_keyHolds the entry key (null when in pool).private FastMap.EntryImpl_nextHolds the next entry in the same bucket (null when in pool).private FastMap.EntryImpl_previousHolds the previous entry in the same bucket (null when in pool).private V_valueHolds the entry value (null when in pool).
-
Constructor Summary
Constructors Modifier Constructor Description privateEntryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object that)Indicates if this entry is considered equals to the specified entry.KgetKey()Returns the key for this entry.VgetValue()Returns the value for this entry.inthashCode()Returns the hash code for this entry.VsetValue(V value)Sets the value for this entry.java.lang.StringtoString()Returns the text representation of this entry.
-
-
-
Field Detail
-
_key
private K _key
Holds the entry key (null when in pool).
-
_value
private V _value
Holds the entry value (null when in pool).
-
_index
private int _index
Holds the bucket index (undefined when in pool).
-
_previous
private FastMap.EntryImpl _previous
Holds the previous entry in the same bucket (null when in pool).
-
_next
private FastMap.EntryImpl _next
Holds the next entry in the same bucket (null when in pool).
-
_before
private FastMap.EntryImpl _before
Holds the entry added before this entry (null when in pool).
-
_after
private FastMap.EntryImpl _after
Holds the entry added after this entry or the next available entry when in pool.
-
-
Method Detail
-
getKey
public K getKey()
Returns the key for this entry.
-
getValue
public V getValue()
Returns the value for this entry.
-
equals
public boolean equals(java.lang.Object that)
Indicates if this entry is considered equals to the specified entry.
-
hashCode
public int hashCode()
Returns the hash code for this entry.
-
toString
public java.lang.String toString()
Returns the text representation of this entry.- Overrides:
toStringin classjava.lang.Object- Returns:
- this entry's textual representation.
-
-