|
J avolution v5.4 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavolution.util.FastMap.Entry<K,V>
public static class FastMap.Entry<K,V>
This class represents a 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).
}
}
Field Summary | |
---|---|
static FastMap.Entry |
NULL
Holds NULL entries (to fill empty hole). |
Constructor Summary | |
---|---|
protected |
FastMap.Entry()
Default constructor. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final FastMap.Entry NULL
Constructor Detail |
---|
protected FastMap.Entry()
Method Detail |
---|
public final FastMap.Entry<K,V> getNext()
getNext
in interface FastCollection.Record
public final FastMap.Entry<K,V> getPrevious()
getPrevious
in interface FastCollection.Record
public final K getKey()
getKey
in interface java.util.Map.Entry<K,V>
public final V getValue()
getValue
in interface java.util.Map.Entry<K,V>
public final V setValue(V value)
setValue
in interface java.util.Map.Entry<K,V>
value
- the new value.
public boolean equals(java.lang.Object that)
equals
in interface java.util.Map.Entry<K,V>
equals
in class java.lang.Object
that
- the object to test for equality.
true if both entry have equal keys and values.
false otherwise.
public int hashCode()
hashCode
in interface java.util.Map.Entry<K,V>
hashCode
in class java.lang.Object
public Text toText()
Realtime
toString
except that the returned value
can be "stack"
allocated and
supports fast concatenation).
toText
in interface Realtime
|
J avolution v5.4 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |