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 booleanadd(long key, long value)longaddGet(long key, long value)voidclear()longget(long key)XList<Long>getIds()booleanisEmpty()intiterateIds(Consumer<? super Long> procedure)intiterateIds(_longProcedure procedure)intiterateObjects(_longProcedure procedure)longoptimize()Optimizes the internal storage and returns the remaining amount of entries.booleanput(long key, long value)longputGet(long key, long value)longsize()
-
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:
optimizein interfaceOptimizableCollection- Returns:
- the amount of entries after the optimization is been completed.
-
iterateIds
-
iterateIds
-
clear
public void clear()
-