public static class AbstractIntHashMap.MapElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
key
Stores the key.
|
private AbstractIntHashMap.MapElement |
next
Stores the next map element.
|
| Constructor and Description |
|---|
MapElement(int 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.
|
int |
getKey()
Getter method for
key property. |
AbstractIntHashMap.MapElement |
getNext()
Getter method for
next property. |
(package private) void |
setNext(AbstractIntHashMap.MapElement next)
Setter method for
next property. |
private int key
private AbstractIntHashMap.MapElement next
public MapElement(int key)
key - the hash key of the elementpublic int getKey()
key property.key propertyvoid setNext(AbstractIntHashMap.MapElement next)
next property.next - The value for the next propertypublic AbstractIntHashMap.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