Package one.microstream.collections
Class HashMapIdId
java.lang.Object
one.microstream.collections.HashMapIdId
- All Implemented Interfaces:
OptimizableCollection
,Sized
,Composition
public final class HashMapIdId extends Object implements OptimizableCollection, Composition
-
Constructor Summary
Constructors Constructor Description HashMapIdId()
HashMapIdId(int slotSize)
-
Method Summary
Modifier and Type Method Description boolean
add(long key, long value)
long
addGet(long key, long value)
void
clear()
long
get(long key)
XList<Long>
getIds()
boolean
isEmpty()
int
iterateIds(Consumer<? super Long> procedure)
int
iterateIds(_longProcedure procedure)
int
iterateObjects(_longProcedure procedure)
long
optimize()
Optimizes the internal storage and returns the remaining amount of entries.boolean
put(long key, long value)
long
putGet(long key, long value)
long
size()
-
Constructor Details
-
HashMapIdId
public HashMapIdId() -
HashMapIdId
public HashMapIdId(int slotSize)
-
-
Method Details
-
size
public final long size() -
isEmpty
public final boolean isEmpty() -
add
public boolean add(long key, long value) -
put
public boolean put(long key, long value) -
putGet
public long putGet(long key, long value) -
addGet
public long addGet(long key, long value) -
get
public long get(long key) -
getIds
-
iterateObjects
-
optimize
public long optimize()Optimizes the internal storage and returns the remaining amount of entries.- Specified by:
optimize
in interfaceOptimizableCollection
- Returns:
- the amount of entries after the optimization is been completed.
-
iterateIds
-
iterateIds
-
clear
public void clear()
-