public class FloatLinkedOpenCustomHashSet extends FloatOpenCustomHashSet implements FloatOrderedSet
| Constructor and Description |
|---|
FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor,
FloatStrategy strategy)
Deprecated.
|
FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
FloatStrategy strategy)
Deprecated.
|
FloatLinkedOpenCustomHashSet(float[] array,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(FloatCollection collection,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenCustomHashSet(FloatCollection collection,
FloatStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenCustomHashSet(FloatIterator iterator,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(FloatIterator iterator,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(FloatStrategy strategy)
Default Contstructor
|
FloatLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
FloatLinkedOpenCustomHashSet(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(float o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(float o)
A customized add method that allows you to insert into the last index.
|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
FloatLinkedOpenCustomHashSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(Float2BooleanFunction filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
float |
findFirst(Float2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
float |
firstFloat()
A method to get the first element in the set
|
<E> void |
forEach(E input,
ObjectFloatConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
void |
forEach(FloatConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
FloatListIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
FloatBidirectionalIterator |
iterator(float fromElement)
A type Specific Iterator starting from a given key
|
float |
lastFloat()
A method to get the last element in the set
|
boolean |
matchesAll(Float2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(Float2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(Float2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
boolean |
moveToFirst(float o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(float o)
A specific move method to move a given key to the last index.
|
float |
pollFirstFloat()
A method to get and remove the first element in the set
|
float |
pollLastFloat()
A method to get and remove the last element in the set
|
float |
reduce(float identity,
FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
float |
reduce(FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAll, containsAny, containsAny, remFloat, remove, removeAll, removeAll, retainAll, retainAll, toFloatArray, toFloatArrayisEmpty, removeAll, retainAll, toArray, toArray, toStringspliterator, synchronize, synchronize, unmodifiableadd, contains, remFloat, remove, removeaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayadd, addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toFloatArray, toFloatArrayarrayflatMap, asAsync, distinct, filter, flatMap, forEach, limit, map, peek, pourAsList, pourAsSet, sortedclearAndTrim, trimpublic FloatLinkedOpenCustomHashSet(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(int minCapacity,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashSet is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic FloatLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashSet is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenCustomHashSet(float[] array,
FloatStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(float[] array,
float loadFactor,
FloatStrategy strategy)
array - the elements that should be put into the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
FloatStrategy strategy)
array - the elements that should be put into the setoffset - the starting index within the array that should be usedlength - the amount of elements used from the arraystrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
float loadFactor,
FloatStrategy strategy)
array - the elements that should be put into the setoffset - the starting index within the array that should be usedlength - the amount of elements used from the arrayloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1java.lang.IllegalStateException - if offset and length causes to step outside of the arrays range@Deprecated
public FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
FloatStrategy strategy)
collection - the set the elements should be added to the Setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is null@Deprecated
public FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor,
FloatStrategy strategy)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenCustomHashSet(FloatCollection collection, FloatStrategy strategy)
collection - the set the elements should be added to the Setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(FloatCollection collection, float loadFactor, FloatStrategy strategy)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
FloatStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor,
FloatStrategy strategy)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenCustomHashSet(FloatIterator iterator, FloatStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(FloatIterator iterator, float loadFactor, FloatStrategy strategy)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public boolean addAndMoveToFirst(float o)
FloatOrderedSetaddAndMoveToFirst in interface FloatOrderedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(float o)
FloatOrderedSetaddAndMoveToLast in interface FloatOrderedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(float o)
FloatOrderedSetmoveToFirst in interface FloatOrderedSeto - that should be moved to the first indexpublic boolean moveToLast(float o)
FloatOrderedSetmoveToLast in interface FloatOrderedSeto - that should be moved to the first lastpublic float firstFloat()
FloatOrderedSetfirstFloat in interface FloatOrderedSetpublic float pollFirstFloat()
FloatOrderedSetpollFirstFloat in interface FloatOrderedSetpublic float lastFloat()
FloatOrderedSetlastFloat in interface FloatOrderedSetpublic float pollLastFloat()
FloatOrderedSetpollLastFloat in interface FloatOrderedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.Set<java.lang.Float>clear in class FloatOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class FloatOpenCustomHashSetsize - the amount of elements that should be allowedpublic void forEach(FloatConsumer action)
FloatIterableforEach in interface FloatIterableforEach in class FloatOpenCustomHashSetaction - The action to be performed for each elementIterable.forEach(Consumer)public <E> void forEach(E input,
ObjectFloatConsumer<E> action)
FloatIterableforEach in interface FloatIterableforEach in class FloatOpenCustomHashSetE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(Float2BooleanFunction filter)
FloatIterablematchesAny in interface FloatIterablematchesAny in class FloatOpenCustomHashSetfilter - that should be appliedpublic boolean matchesNone(Float2BooleanFunction filter)
FloatIterablematchesNone in interface FloatIterablematchesNone in class FloatOpenCustomHashSetfilter - that should be appliedpublic boolean matchesAll(Float2BooleanFunction filter)
FloatIterablematchesAll in interface FloatIterablematchesAll in class FloatOpenCustomHashSetfilter - that should be appliedpublic float reduce(float identity,
FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterablereduce in class FloatOpenCustomHashSetidentity - the start valueoperator - the operation that should be appliedpublic float reduce(FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterablereduce in class FloatOpenCustomHashSetoperator - the operation that should be appliedpublic float findFirst(Float2BooleanFunction filter)
FloatIterablefindFirst in interface FloatIterablefindFirst in class FloatOpenCustomHashSetfilter - that should be appliedpublic int count(Float2BooleanFunction filter)
FloatIterablecount in interface FloatIterablecount in class FloatOpenCustomHashSetfilter - that should be appliedpublic FloatListIterator iterator()
FloatCollectioniterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface java.util.Set<java.lang.Float>iterator in interface FloatCollectioniterator in interface FloatIterableiterator in interface FloatOrderedSetiterator in interface FloatSetiterator in class FloatOpenCustomHashSetCollection.iterator()public FloatBidirectionalIterator iterator(float fromElement)
FloatOrderedSetiterator in interface FloatOrderedSetfromElement - the element the iterator should start frompublic FloatLinkedOpenCustomHashSet copy()
FloatCollectioncopy in interface FloatCollectioncopy in interface FloatOrderedSetcopy in interface FloatSetcopy in class FloatOpenCustomHashSet