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 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()
-
-
-
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:
optimize
in interfaceOptimizableCollection
- Returns:
- the amount of entries after the optimization is been completed.
-
iterateIds
public int iterateIds(_longProcedure procedure)
-
clear
public void clear()
-
-