public class FloatRBTreeSet extends AbstractFloatSet implements FloatNavigableSet
| Constructor and Description |
|---|
FloatRBTreeSet()
Default Constructor
|
FloatRBTreeSet(java.util.Collection<? extends java.lang.Float> collection)
Deprecated.
|
FloatRBTreeSet(java.util.Collection<? extends java.lang.Float> collection,
FloatComparator comp)
Deprecated.
|
FloatRBTreeSet(float[] array)
Helper constructor that allow to create a set from an array
|
FloatRBTreeSet(float[] array,
FloatComparator comp)
Helper constructor that allow to create a set from an array
|
FloatRBTreeSet(float[] array,
int offset,
int length)
Helper constructor that allow to create a set from an array
|
FloatRBTreeSet(float[] array,
int offset,
int length,
FloatComparator comp)
Helper constructor that allow to create a set from an array
|
FloatRBTreeSet(FloatCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatRBTreeSet(FloatCollection collection,
FloatComparator comp)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatRBTreeSet(FloatComparator comp)
Constructor that allows to define the sorter
|
FloatRBTreeSet(FloatIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatRBTreeSet(FloatIterator iterator,
FloatComparator comp)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatRBTreeSet(FloatSortedSet sortedSet)
A Helper constructor that allows to create a Set with exactly the same values as the provided SortedSet.
|
FloatRBTreeSet(java.util.Iterator<java.lang.Float> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatRBTreeSet(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
|
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.
|
float |
ceiling(float e)
A Type Specific ceiling method to reduce boxing/unboxing.
|
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.
|
FloatBidirectionalIterator |
descendingIterator() |
FloatNavigableSet |
descendingSet() |
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.
|
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.
|
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.
|
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
|
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, containsAny, containsAny, remFloat, removeAll, retainAll, toFloatArray, toFloatArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringceiling, first, floor, headSet, headSet, headSet, higher, last, lower, pollFirst, pollLast, spliterator, subSet, subSet, subSet, tailSet, tailSet, tailSetaddAll, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toFloatArray, toFloatArrayforEach, forEachpublic FloatRBTreeSet()
public FloatRBTreeSet(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic FloatRBTreeSet(float[] array)
array - the elements that should be usedpublic FloatRBTreeSet(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 FloatRBTreeSet(float[] array,
FloatComparator comp)
array - the elements that should be usedcomp - the sorter of the tree, can be nullpublic FloatRBTreeSet(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 FloatRBTreeSet(FloatSortedSet sortedSet)
sortedSet - the set the elements should be added to the TreeSet@Deprecated public FloatRBTreeSet(java.util.Collection<? extends java.lang.Float> collection)
collection - the set the elements should be added to the TreeSet@Deprecated
public FloatRBTreeSet(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 FloatRBTreeSet(FloatCollection collection)
collection - the set the elements should be added to the TreeSetpublic FloatRBTreeSet(FloatCollection collection, FloatComparator comp)
collection - the set the elements should be added to the TreeSetcomp - the sorter of the tree, can be nullpublic FloatRBTreeSet(java.util.Iterator<java.lang.Float> iterator)
iterator - the elements that should be added to the setpublic FloatRBTreeSet(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 FloatRBTreeSet(FloatIterator iterator)
iterator - the elements that should be added to the setpublic FloatRBTreeSet(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 boolean addAndMoveToFirst(float o)
FloatSortedSetaddAndMoveToFirst in interface FloatSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(float o)
FloatSortedSetaddAndMoveToLast in interface FloatSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(float o)
FloatSortedSetmoveToFirst in interface FloatSortedSeto - that should be moved to the first indexpublic boolean moveToLast(float o)
FloatSortedSetmoveToLast in interface FloatSortedSeto - that should be moved to the first lastpublic 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 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 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 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