public static class AbstractLongHashMap.MapElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
key
Stores the key.
|
private AbstractLongHashMap.MapElement |
next
Stores the next map element.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MapElement(long key)
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.
|
long |
getKey()
Getter method for
key property. |
AbstractLongHashMap.MapElement |
getNext()
Getter method for
next property. |
(package private) void |
setNext(AbstractLongHashMap.MapElement next)
Setter method for
next property. |
private long key
private AbstractLongHashMap.MapElement next
protected MapElement(long key)
key - the hash key of the elementpublic long getKey()
key property.key propertyvoid setNext(AbstractLongHashMap.MapElement next)
next property.next - The value for the next propertypublic AbstractLongHashMap.MapElement getNext()
next property.next propertyprotected boolean beforeRemove()
true if it really should be removed,
false if removal should not be carried outprotected java.lang.Object atInsert(java.lang.Object value)
value - the new value