Package org.codehaus.plexus.util
Class FastMap.EntryImpl<K,V>
java.lang.Object
org.codehaus.plexus.util.FastMap.EntryImpl<K,V>
- All Implemented Interfaces:
Map.Entry<K,
V>
This class represents a
FastMap
entry.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FastMap.EntryImpl
Holds the entry added after this entry or the next available entry when in pool.private FastMap.EntryImpl
Holds the entry added before this entry (null when in pool).private int
Holds the bucket index (undefined when in pool).private K
Holds the entry key (null when in pool).private FastMap.EntryImpl
Holds the next entry in the same bucket (null when in pool).private FastMap.EntryImpl
Holds the previous entry in the same bucket (null when in pool).private V
Holds the entry value (null when in pool). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if this entry is considered equals to the specified entry.getKey()
Returns the key for this entry.getValue()
Returns the value for this entry.int
hashCode()
Returns the hash code for this entry.Sets the value for this entry.toString()
Returns the text representation of this entry.
-
Field Details
-
_key
Holds the entry key (null when in pool). -
_value
Holds the entry value (null when in pool). -
_index
private int _indexHolds the bucket index (undefined when in pool). -
_previous
Holds the previous entry in the same bucket (null when in pool). -
_next
Holds the next entry in the same bucket (null when in pool). -
_before
Holds the entry added before this entry (null when in pool). -
_after
Holds the entry added after this entry or the next available entry when in pool.
-
-
Constructor Details
-
EntryImpl
private EntryImpl()
-
-
Method Details
-
getKey
Returns the key for this entry. -
getValue
Returns the value for this entry. -
setValue
Sets the value for this entry. -
equals
Indicates if this entry is considered equals to the specified entry. -
hashCode
public int hashCode()Returns the hash code for this entry. -
toString
Returns the text representation of this entry.
-