public static final class Store.LongLongMap extends Object
Open Hash Map which uses primitive long as values and keys.
This is very stripped down version from Koloboke Collection Library. I removed modCount, free value (defaults to zero) and most of the methods. Only put/get operations are supported.
To iterate over collection one has to traverse table which contains
key-value pairs and skip zero pairs.
| Constructor and Description |
|---|
Store.LongLongMap() |
Store.LongLongMap(int initCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Store.LongLongMap |
clone() |
long |
get(long key) |
long |
put(long key,
long value) |
boolean |
putIfAbsent(long key,
long value) |
int |
size() |
public Store.LongLongMap()
public Store.LongLongMap(int initCapacity)
public long get(long key)
public long put(long key,
long value)
public int size()
public void clear()
public Store.LongLongMap clone()
public boolean putIfAbsent(long key,
long value)
Copyright © 2015. All Rights Reserved.