V - the element typepublic static class CleaningLongHashMap.MapElement<V> extends LongHashMap.MapElement<V>
| Modifier and Type | Field and Description |
|---|---|
private int |
count
Stores the counter.
|
| Constructor and Description |
|---|
MapElement(long 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.
|
int |
getCount()
Returns how often the key was inserted.
|
getValue, setValuegetKey, getNext, setNextMapElement(long key,
V value)
key - the hash key of the elementvalue - the value to be storedpublic int getCount()
protected boolean beforeRemove()
beforeRemove in class LongHashMap.MapElement<V>true 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 LongHashMap.MapElement<V>value - the new value