public class FloatAVLTreeSet extends AbstractFloatSet implements FloatNavigableSet
ISizeProvider.CollectionSize| Constructor and Description |
|---|
FloatAVLTreeSet()
Default Constructor
|
FloatAVLTreeSet(java.util.Collection<? extends java.lang.Float> collection)
Deprecated.
|
FloatAVLTreeSet(java.util.Collection<? extends java.lang.Float> collection,
FloatComparator comp)
Deprecated.
|
FloatAVLTreeSet(float[] array)
Helper constructor that allow to create a set from an array
|
FloatAVLTreeSet(float[] array,
FloatComparator comp)
Helper constructor that allow to create a set from an array
|
FloatAVLTreeSet(float[] array,
int offset,
int length)
Helper constructor that allow to create a set from an array
|
FloatAVLTreeSet(float[] array,
int offset,
int length,
FloatComparator comp)
Helper constructor that allow to create a set from an array
|
FloatAVLTreeSet(FloatCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatAVLTreeSet(FloatCollection collection,
FloatComparator comp)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatAVLTreeSet(FloatComparator comp)
Constructor that allows to define the sorter
|
FloatAVLTreeSet(FloatIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatAVLTreeSet(FloatIterator iterator,
FloatComparator comp)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatAVLTreeSet(FloatSortedSet sortedSet)
A Helper constructor that allows to create a Set with exactly the same values as the provided SortedSet.
|
FloatAVLTreeSet(java.util.Iterator<java.lang.Float> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatAVLTreeSet(java.util.Iterator<java.lang.Float> iterator,
FloatComparator comp)
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
|
float |
ceiling(float e)
A Type Specific ceiling method to reduce boxing/unboxing.
|
java.lang.Float |
ceiling(java.lang.Float e) |
void |
clear() |
FloatComparator |
comparator()
A Type Specific Comparator method
|
boolean |
contains(float e)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
|
FloatAVLTreeSet |
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.
|
FloatBidirectionalIterator |
descendingIterator() |
FloatNavigableSet |
descendingSet() |
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
|
float |
floor(float e)
A Type Specific floor method to reduce boxing/unboxing.
|
java.lang.Float |
floor(java.lang.Float e) |
<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.
|
float |
getDefaultMaxValue()
A Helper method to get the max value for SubSets.
|
float |
getDefaultMinValue()
A Helper method to get the min value for SubSets.
|
FloatNavigableSet |
headSet(float toElement,
boolean inclusive)
A Type Specific HeadSet method to reduce boxing/unboxing
|
float |
higher(float e)
A Type Specific higher method to reduce boxing/unboxing.
|
java.lang.Float |
higher(java.lang.Float e) |
FloatBidirectionalIterator |
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
|
float |
lower(float e)
A Type Specific lower method to reduce boxing/unboxing.
|
java.lang.Float |
lower(java.lang.Float e) |
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.
|
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.
|
void |
setDefaultMaxValue(float value)
A Helper method to set the max value for SubSets.
|
void |
setDefaultMinValue(float value)
A Helper method to set the min value for SubSets.
|
int |
size() |
FloatNavigableSet |
subSet(float fromElement,
boolean fromInclusive,
float toElement,
boolean toInclusive)
A Type Specific SubSet method to reduce boxing/unboxing
|
FloatNavigableSet |
tailSet(float fromElement,
boolean inclusive)
A Type Specific TailSet method to reduce boxing/unboxing
|
equals, hashCodeadd, addAll, addAll, containsAll, containsAll, containsAny, containsAny, remFloat, removeAll, removeAll, retainAll, retainAll, toFloatArray, toFloatArrayisEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, headSet, headSet, last, pollFirst, pollLast, spliterator, subSet, subSet, subSet, synchronize, synchronize, tailSet, tailSet, tailSet, unmodifiableaddAll, addAll, 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 FloatAVLTreeSet()
public FloatAVLTreeSet(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic FloatAVLTreeSet(float[] array)
array - the elements that should be usedpublic FloatAVLTreeSet(float[] array,
int offset,
int length)
array - the elements that should be usedoffset - the starting index within the arraylength - the amount of elements that are within the arrayjava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic FloatAVLTreeSet(float[] array,
FloatComparator comp)
array - the elements that should be usedcomp - the sorter of the tree, can be nullpublic FloatAVLTreeSet(float[] array,
int offset,
int length,
FloatComparator comp)
array - the elements that should be usedoffset - the starting index within the arraylength - the amount of elements that are within the arraycomp - the sorter of the tree, can be nulljava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic FloatAVLTreeSet(FloatSortedSet sortedSet)
sortedSet - the set the elements should be added to the TreeSet@Deprecated public FloatAVLTreeSet(java.util.Collection<? extends java.lang.Float> collection)
collection - the set the elements should be added to the TreeSet@Deprecated
public FloatAVLTreeSet(java.util.Collection<? extends java.lang.Float> collection,
FloatComparator comp)
collection - the set the elements should be added to the TreeSetcomp - the sorter of the tree, can be nullpublic FloatAVLTreeSet(FloatCollection collection)
collection - the set the elements should be added to the TreeSetpublic FloatAVLTreeSet(FloatCollection collection, FloatComparator comp)
collection - the set the elements should be added to the TreeSetcomp - the sorter of the tree, can be nullpublic FloatAVLTreeSet(java.util.Iterator<java.lang.Float> iterator)
iterator - the elements that should be added to the setpublic FloatAVLTreeSet(java.util.Iterator<java.lang.Float> iterator,
FloatComparator comp)
iterator - the elements that should be added to the setcomp - the sorter of the tree, can be nullpublic FloatAVLTreeSet(FloatIterator iterator)
iterator - the elements that should be added to the setpublic FloatAVLTreeSet(FloatIterator iterator, FloatComparator comp)
iterator - the elements that should be added to the setcomp - the sorter of the tree, can be nullpublic void setDefaultMaxValue(float value)
FloatNavigableSetsetDefaultMaxValue in interface FloatNavigableSetvalue - the new max valuepublic float getDefaultMaxValue()
FloatNavigableSetgetDefaultMaxValue in interface FloatNavigableSetpublic void setDefaultMinValue(float value)
FloatNavigableSetsetDefaultMinValue in interface FloatNavigableSetvalue - the new min valuepublic float getDefaultMinValue()
FloatNavigableSetgetDefaultMinValue in interface FloatNavigableSetpublic boolean add(float o)
FloatCollectionadd in interface FloatCollectiono - the element that should be addedpublic float lower(float e)
FloatNavigableSetlower in interface FloatNavigableSete - that should be compared with.public float floor(float e)
FloatNavigableSetfloor in interface FloatNavigableSete - that should be compared with.public float higher(float e)
FloatNavigableSethigher in interface FloatNavigableSete - that should be compared with.public float ceiling(float e)
FloatNavigableSetceiling in interface FloatNavigableSete - that should be compared with.public java.lang.Float lower(java.lang.Float e)
lower in interface java.util.NavigableSet<java.lang.Float>lower in interface FloatNavigableSetpublic java.lang.Float floor(java.lang.Float e)
floor in interface java.util.NavigableSet<java.lang.Float>floor in interface FloatNavigableSetpublic java.lang.Float higher(java.lang.Float e)
higher in interface java.util.NavigableSet<java.lang.Float>higher in interface FloatNavigableSetpublic java.lang.Float ceiling(java.lang.Float e)
ceiling in interface java.util.NavigableSet<java.lang.Float>ceiling in interface FloatNavigableSetpublic 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 findFirst(FloatPredicate filter)
FloatIterablefindFirst 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 int count(FloatPredicate filter)
FloatIterablecount in interface FloatIterablefilter - that should be appliedpublic boolean contains(float e)
AbstractFloatCollectioncontains in interface FloatCollectioncontains in class AbstractFloatCollectione - the element that should be searched for.public boolean contains(java.lang.Object e)
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()
FloatSortedSetfirstFloat in interface FloatSortedSetpublic float lastFloat()
FloatSortedSetlastFloat in interface FloatSortedSetpublic boolean remove(float o)
FloatSetpublic 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 float pollFirstFloat()
FloatSortedSetpollFirstFloat in interface FloatSortedSetpublic float pollLastFloat()
FloatSortedSetpollLastFloat in interface FloatSortedSetpublic 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>public 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 FloatAVLTreeSet copy()
FloatCollectioncopy in interface FloatCollectioncopy in interface FloatNavigableSetcopy in interface FloatSetcopy in interface FloatSortedSetcopy in class AbstractFloatSetpublic FloatComparator comparator()
FloatSortedSetcomparator in interface java.util.SortedSet<java.lang.Float>comparator in interface FloatSortedSetpublic FloatBidirectionalIterator iterator()
FloatCollectioniterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface java.util.NavigableSet<java.lang.Float>iterator in interface java.util.Set<java.lang.Float>iterator in interface FloatCollectioniterator in interface FloatIterableiterator in interface FloatNavigableSetiterator in interface FloatSetiterator in interface FloatSortedSetiterator in class AbstractFloatSetCollection.iterator()public FloatBidirectionalIterator iterator(float fromElement)
FloatSortedSetiterator in interface FloatSortedSetfromElement - the element the iterator should start frompublic FloatBidirectionalIterator descendingIterator()
descendingIterator in interface java.util.NavigableSet<java.lang.Float>descendingIterator in interface FloatNavigableSetpublic FloatNavigableSet subSet(float fromElement, boolean fromInclusive, float toElement, boolean toInclusive)
FloatNavigableSetsubSet in interface FloatNavigableSetfromElement - where the SubSet should startfromInclusive - if the fromElement is inclusive or nottoElement - where the SubSet should endtoInclusive - if the toElement is inclusive or notpublic FloatNavigableSet headSet(float toElement, boolean inclusive)
FloatNavigableSetheadSet in interface FloatNavigableSettoElement - where the HeadSet should endinclusive - if the toElement is inclusive or notpublic FloatNavigableSet tailSet(float fromElement, boolean inclusive)
FloatNavigableSettailSet in interface FloatNavigableSetfromElement - where the TailSet should startinclusive - if the fromElement is inclusive or notpublic FloatNavigableSet descendingSet()
descendingSet in interface java.util.NavigableSet<java.lang.Float>descendingSet in interface FloatNavigableSet