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 SummaryConstructors Constructor Description HashMapIdId()HashMapIdId(int slotSize)
 - 
Method SummaryModifier 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- 
addpublic boolean add(long key, long value)
 - 
putpublic boolean put(long key, long value)
 - 
putGetpublic long putGet(long key, long value)
 - 
addGetpublic long addGet(long key, long value)
 - 
getpublic long get(long key) 
 - 
iterateObjectspublic int iterateObjects(_longProcedure procedure) 
 - 
optimizepublic long optimize() Optimizes the internal storage and returns the remaining amount of entries.- Specified by:
- optimizein interface- OptimizableCollection
- Returns:
- the amount of entries after the optimization is been completed.
 
 - 
iterateIdspublic int iterateIds(_longProcedure procedure) 
 - 
clearpublic void clear() 
 
- 
 
-