|
J avolution v5.2 (J2SE 1.5+) | ||||||||
| 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. |
| 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.Recordpublic final FastMap.Entry<K,V> getPrevious()
getPrevious in interface FastCollection.Recordpublic 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.Objectthat - 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
|
J avolution v5.2 (J2SE 1.5+) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||