V - the value typepublic static class IntHashMap.MapElement<V> extends AbstractIntHashMap.MapElement
| Constructor and Description |
|---|
MapElement(int key,
V value)
Constructor of a map element.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
atInsert(java.lang.Object value)
Called at insertion of this map element when an element of the
same key was inserted before.
|
protected boolean |
beforeRemove()
Perform a check before finally removing this element.
|
V |
getValue()
Getter method for
value property. |
(package private) void |
setValue(V value)
Setter method for
value property. |
getKey, getNext, setNextprivate V value
MapElement(int key,
V value)
key - the hash key of the elementvalue - the value to be storedvoid setValue(V value)
value property.value - The value for the value propertypublic V getValue()
value property.value propertyprotected boolean beforeRemove()
beforeRemove in class AbstractIntHashMap.MapElementtrue if it really should be removed,
false if removal should not be carried outprotected java.lang.Object atInsert(java.lang.Object value)
atInsert in class AbstractIntHashMap.MapElementvalue - the new value