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 Sized, 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()
-
-
-
Method Detail
-
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)
-
iterateObjects
public int iterateObjects(_longProcedure procedure)
-
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
public int iterateIds(_longProcedure procedure)
-
clear
public void clear()
-
-