public class FloatLinkedOpenHashSet extends FloatOpenHashSet implements FloatOrderedSet
| Constructor and Description |
|---|
FloatLinkedOpenHashSet()
Default Constructor
|
FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
Deprecated.
|
FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor)
Deprecated.
|
FloatLinkedOpenHashSet(float[] array)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
int offset,
int length)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
int offset,
int length,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(FloatCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenHashSet(FloatCollection collection,
float loadFactor)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenHashSet(FloatIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(FloatIterator iterator,
float loadFactor)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(int minCapacity)
Constructor that defines the minimum capacity
|
FloatLinkedOpenHashSet(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor)
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
|
FloatLinkedOpenHashSet |
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, contains, remove, remove, size, trimequals, hashCodeadd, containsAll, containsAll, containsAny, containsAny, remFloat, 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 FloatLinkedOpenHashSet()
public FloatLinkedOpenHashSet(int minCapacity)
minCapacity - the minimum capacity the HashSet is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic FloatLinkedOpenHashSet(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashSet is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenHashSet(float[] array)
array - the elements that should be put into the setpublic FloatLinkedOpenHashSet(float[] array,
float loadFactor)
array - the elements that should be put into the setloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenHashSet(float[] array,
int offset,
int length)
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 arrayjava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic FloatLinkedOpenHashSet(float[] array,
int offset,
int length,
float loadFactor)
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 resizejava.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 FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
collection - the set the elements should be added to the Set@Deprecated
public FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenHashSet(FloatCollection collection)
collection - the set the elements should be added to the Setpublic FloatLinkedOpenHashSet(FloatCollection collection, float loadFactor)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
iterator - the elements that should be added to the setpublic FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public FloatLinkedOpenHashSet(FloatIterator iterator)
iterator - the elements that should be added to the setpublic FloatLinkedOpenHashSet(FloatIterator iterator, float loadFactor)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizejava.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 forEach(FloatConsumer action)
FloatIterableforEach in interface FloatIterableforEach in class FloatOpenHashSetaction - 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 FloatOpenHashSetE - 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 FloatOpenHashSetfilter - that should be appliedpublic boolean matchesNone(Float2BooleanFunction filter)
FloatIterablematchesNone in interface FloatIterablematchesNone in class FloatOpenHashSetfilter - that should be appliedpublic boolean matchesAll(Float2BooleanFunction filter)
FloatIterablematchesAll in interface FloatIterablematchesAll in class FloatOpenHashSetfilter - that should be appliedpublic float reduce(float identity,
FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterablereduce in class FloatOpenHashSetidentity - the start valueoperator - the operation that should be appliedpublic float reduce(FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterablereduce in class FloatOpenHashSetoperator - the operation that should be appliedpublic float findFirst(Float2BooleanFunction filter)
FloatIterablefindFirst in interface FloatIterablefindFirst in class FloatOpenHashSetfilter - that should be appliedpublic int count(Float2BooleanFunction filter)
FloatIterablecount in interface FloatIterablecount in class FloatOpenHashSetfilter - that should be appliedpublic void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.Set<java.lang.Float>clear in class FloatOpenHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class FloatOpenHashSetsize - the amount of elements that should be allowedpublic 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 FloatOpenHashSetCollection.iterator()public FloatBidirectionalIterator iterator(float fromElement)
FloatOrderedSetiterator in interface FloatOrderedSetfromElement - the element the iterator should start frompublic FloatLinkedOpenHashSet copy()
FloatCollectioncopy in interface FloatCollectioncopy in interface FloatOrderedSetcopy in interface FloatSetcopy in class FloatOpenHashSet