Package one.microstream.collections
Class Set_long.Default
java.lang.Object
one.microstream.collections.Set_long.Default
- All Implemented Interfaces:
OptimizableCollection
,Sized
,Set_long
,_longIterable
,Composition
- Enclosing interface:
- Set_long
public static final class Set_long.Default extends Object implements Set_long
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.collections.Set_long
Set_long.Default
-
Method Summary
Modifier and Type Method Description boolean
add(long element)
void
clear()
boolean
contains(long element)
static float
defaultChainGrowthFactor()
static int
defaultChainLength()
static int
defaultSlotLength()
Set_long.Default
filter(_longPredicate selector)
boolean
isEmpty()
void
iterate(_longProcedure procedure)
long
optimize()
Optimizes the internal storage and returns the remaining amount of entries.long
size()
void
truncate()
-
Method Details
-
defaultSlotLength
public static final int defaultSlotLength() -
defaultChainLength
public static final int defaultChainLength() -
defaultChainGrowthFactor
public static final float defaultChainGrowthFactor() -
size
public final long size() -
isEmpty
public final boolean isEmpty() -
add
public final boolean add(long element) -
contains
public final boolean contains(long element) -
iterate
- Specified by:
iterate
in interface_longIterable
-
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.
-
clear
public void clear() -
truncate
public void truncate() -
filter
-