public static class FastMap.Entry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>, FastCollection.Record, Realtime
FastMap entry.
Custom FastMap may use a derived implementation.
For example:
static class MyMap<K,V,X> extends FastMap<K,V> {
protected MyEntry newEntry() {
return new MyEntry();
}
class MyEntry extends Entry<K,V> {
X xxx; // Additional entry field (e.g. cross references).
}
}| Modifier and Type | Field and Description |
|---|---|
static FastMap.Entry |
NULL
Holds NULL entries (to fill empty hole).
|
| Modifier | Constructor and Description |
|---|---|
protected |
Entry()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object that)
Indicates if this entry is considered equals to the specified entry
(using default value and key equality comparator to ensure symetry).
|
K |
getKey()
Returns the key for this entry.
|
FastMap.Entry<K,V> |
getNext()
Returns the entry after this one.
|
FastMap.Entry<K,V> |
getPrevious()
Returns the entry before this one.
|
V |
getValue()
Returns the value for this entry.
|
int |
hashCode()
Returns the hash code for this entry.
|
V |
setValue(V value)
Sets the value for this entry.
|
Text |
toText()
Returns the textual representation of this real-time object
(equivalent to
toString except that the returned value
can be "stack" allocated and
supports fast concatenation). |
public static final FastMap.Entry NULL
public final FastMap.Entry<K,V> getNext()
getNext in interface FastCollection.Recordpublic final FastMap.Entry<K,V> getPrevious()
getPrevious in interface FastCollection.Recordpublic final K getKey()
public final V getValue()
public boolean equals(java.lang.Object that)
public int hashCode()
Copyright © 2005 - 2007 Javolution.