public class ImmutableFloatOpenHashSet extends AbstractFloatSet implements FloatOrderedSet
ISizeProvider.CollectionSize| Constructor and Description |
|---|
ImmutableFloatOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
Deprecated.
|
ImmutableFloatOpenHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor)
Deprecated.
|
ImmutableFloatOpenHashSet(float[] array)
Helper constructor that allow to create a set from unboxed values
|
ImmutableFloatOpenHashSet(float[] array,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
ImmutableFloatOpenHashSet(float[] array,
int offset,
int length)
Helper constructor that allow to create a set from unboxed values
|
ImmutableFloatOpenHashSet(float[] array,
int offset,
int length,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
ImmutableFloatOpenHashSet(FloatCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ImmutableFloatOpenHashSet(FloatCollection collection,
float loadFactor)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ImmutableFloatOpenHashSet(FloatIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ImmutableFloatOpenHashSet(FloatIterator iterator,
float loadFactor)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ImmutableFloatOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ImmutableFloatOpenHashSet(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 |
add(float o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Float> c)
Deprecated.
|
boolean |
addAll(FloatCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
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() |
boolean |
contains(float o)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
|
ImmutableFloatOpenHashSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(FloatPredicate filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
float |
findFirst(FloatPredicate 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
|
void |
forEachIndexed(IntFloatConsumer action)
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
|
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(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(FloatPredicate 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
|
boolean |
remove(float o)
A Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
|
int |
size() |
equals, hashCodeadd, containsAll, containsAll, containsAny, containsAny, remFloat, removeAll, removeAll, retainAll, retainAll, toFloatArray, toFloatArrayisEmpty, removeAll, retainAll, toArray, toArray, toStringspliterator, synchronize, synchronize, unmodifiablecontainsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArrayaddAll, addAll, addAll, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toFloatArray, toFloatArrayarrayflatMap, asAsync, distinct, filter, flatMap, forEach, limit, map, peek, pourAsList, pourAsSet, repeat, sortedofpublic ImmutableFloatOpenHashSet(float[] array)
array - the elements that should be put into the setpublic ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
collection - the set the elements should be added to the Set@Deprecated
public ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(FloatCollection collection)
collection - the set the elements should be added to the Setpublic ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
iterator - the elements that should be added to the setpublic ImmutableFloatOpenHashSet(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 ImmutableFloatOpenHashSet(FloatIterator iterator)
iterator - the elements that should be added to the setpublic ImmutableFloatOpenHashSet(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 add(float o)
FloatCollectionadd in interface FloatCollectiono - the element that should be added@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Float> c)
AbstractFloatCollectionThis default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Float>addAll in interface java.util.Set<java.lang.Float>addAll in class AbstractFloatCollectionpublic boolean addAll(FloatCollection c)
FloatCollectionaddAll in interface FloatCollectionaddAll in class AbstractFloatCollectionc - the collection of elements that should be addedpublic 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 boolean contains(java.lang.Object o)
AbstractFloatCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Float>contains in interface java.util.Set<java.lang.Float>contains in interface FloatCollectioncontains in interface FloatSetcontains in class AbstractFloatCollectionpublic float firstFloat()
FloatOrderedSetfirstFloat in interface FloatOrderedSetpublic float pollFirstFloat()
FloatOrderedSetpollFirstFloat in interface FloatOrderedSetpublic float lastFloat()
FloatOrderedSetlastFloat in interface FloatOrderedSetpublic float pollLastFloat()
FloatOrderedSetpollLastFloat in interface FloatOrderedSetpublic boolean remove(java.lang.Object o)
AbstractFloatCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Float>remove in interface java.util.Set<java.lang.Float>remove in interface FloatCollectionremove in interface FloatSetremove in class AbstractFloatCollectionpublic boolean contains(float o)
AbstractFloatCollectioncontains in interface FloatCollectioncontains in class AbstractFloatCollectiono - the element that should be searched for.public boolean remove(float o)
FloatSetpublic void forEach(FloatConsumer action)
FloatIterableforEach in interface FloatIterableaction - The action to be performed for each elementIterable.forEach(Consumer)public void forEachIndexed(IntFloatConsumer action)
FloatIterableforEachIndexed in interface FloatIterableaction - The action to be performed for each elementpublic <E> void forEach(E input,
ObjectFloatConsumer<E> action)
FloatIterableforEach in interface FloatIterableE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(FloatPredicate filter)
FloatIterablematchesAny in interface FloatIterablefilter - that should be appliedpublic boolean matchesNone(FloatPredicate filter)
FloatIterablematchesNone in interface FloatIterablefilter - that should be appliedpublic boolean matchesAll(FloatPredicate filter)
FloatIterablematchesAll in interface FloatIterablefilter - that should be appliedpublic float reduce(float identity,
FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterableidentity - the start valueoperator - the operation that should be appliedpublic float reduce(FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterableoperator - the operation that should be appliedpublic float findFirst(FloatPredicate filter)
FloatIterablefindFirst in interface FloatIterablefilter - that should be appliedpublic int count(FloatPredicate filter)
FloatIterablecount in interface FloatIterablefilter - 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 AbstractFloatSetCollection.iterator()public FloatBidirectionalIterator iterator(float fromElement)
FloatOrderedSetiterator in interface FloatOrderedSetfromElement - the element the iterator should start frompublic ImmutableFloatOpenHashSet copy()
FloatCollectioncopy in interface FloatCollectioncopy in interface FloatOrderedSetcopy in interface FloatSetcopy in class AbstractFloatSetpublic void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.Set<java.lang.Float>clear in class java.util.AbstractCollection<java.lang.Float>public int size()
size in interface java.util.Collection<java.lang.Float>size in interface java.util.Set<java.lang.Float>size in interface ISizeProvidersize in class java.util.AbstractCollection<java.lang.Float>