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 booleanadd(long element)voidclear()booleancontains(long element)static floatdefaultChainGrowthFactor()static intdefaultChainLength()static intdefaultSlotLength()Set_long.Defaultfilter(_longPredicate selector)booleanisEmpty()voiditerate(_longProcedure procedure)longoptimize()Optimizes the internal storage and returns the remaining amount of entries.longsize()voidtruncate()
-
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:
iteratein interface_longIterable
-
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.
-
clear
public void clear() -
truncate
public void truncate() -
filter
-