|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mapdb.LongMap<V>
public abstract class LongMap<V>
Same as 'java.util.Map' but uses primitive 'long' keys to minimise boxing (and GC) overhead.
| Nested Class Summary | |
|---|---|
static interface |
LongMap.LongMapIterator<V>
Iterates over LongMap key and values without boxing long keys |
| Constructor Summary | |
|---|---|
LongMap()
|
|
| Method Summary | |
|---|---|
abstract void |
clear()
Removes all mappings from this hash map, leaving it empty. |
abstract V |
get(long key)
Returns the value of the mapping with the specified key. |
abstract boolean |
isEmpty()
Returns whether this map is empty. |
abstract LongMap.LongMapIterator<V> |
longMapIterator()
|
abstract V |
put(long key,
V value)
Maps the specified key to the specified value. |
abstract V |
remove(long key)
Removes the mapping from this map |
abstract int |
size()
Returns the number of elements in this map. |
String |
toString()
|
abstract Iterator<V> |
valuesIterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongMap()
| Method Detail |
|---|
public abstract void clear()
isEmpty(),
size()public abstract V get(long key)
key - the key.
null
if no mapping for the specified key is found.public abstract boolean isEmpty()
true if this map has no elements, false
otherwise.size()
public abstract V put(long key,
V value)
key - the key.value - the value.
null if there was no such mapping.public abstract V remove(long key)
key - to remove
public abstract int size()
public abstract Iterator<V> valuesIterator()
public abstract LongMap.LongMapIterator<V> longMapIterator()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||