public static class FloatSortedSets.Singleton extends FloatSets.Singleton implements FloatSortedSet, Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific sorted set.
element| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(float element,
FloatComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
FloatComparator |
comparator() |
Float |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
firstFloat()
Returns the first (lowest) element currently in this set.
|
FloatSortedSet |
headSet(float to)
Returns a view of the portion of this sorted set whose elements are strictly less than
toElement. |
FloatSortedSet |
headSet(Float to)
Deprecated.
Please use the corresponding type-specific method instead.
|
FloatBidirectionalIterator |
iterator(float from)
Returns a type-specific
BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation). |
Float |
last()
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
lastFloat()
Returns the last (highest) element currently in this set.
|
FloatSortedSet |
subSet(float from,
float to)
Returns a view of the portion of this sorted set whose elements range from
fromElement, inclusive, to toElement, exclusive. |
FloatSortedSet |
subSet(Float from,
Float to)
Deprecated.
Please use the corresponding type-specific method instead.
|
FloatSortedSet |
tailSet(float from)
Returns a view of the portion of this sorted set whose elements are greater than or equal to
fromElement. |
FloatSortedSet |
tailSet(Float from)
Deprecated.
Please use the corresponding type-specific method instead.
|
addAll, addAll, clone, contains, iterator, remove, removeAll, removeAll, retainAll, retainAll, sizeequals, hashCode, remadd, add, contains, containsAll, remove, toArray, toFloatArray, toFloatArray, toStringclear, containsAll, isEmpty, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waititeratoradd, contains, rem, remove, removeadd, addAll, contains, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toFloatArray, toFloatArrayforEach, forEachspliteratoraddAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayparallelStream, streamprotected Singleton(float element,
FloatComparator comparator)
public FloatBidirectionalIterator iterator(float from)
FloatSortedSetBidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
This method returns a type-specific bidirectional iterator with given
starting point. The starting point is any element comparable to the
elements of this set (even if it does not actually belong to the
set). The next element of the returned iterator is the least element of
the set that is greater than the starting point (if there are no
elements greater than the starting point, hasNext() will return
false). The previous element of the returned iterator is
the greatest element of the set that is smaller than or equal to the
starting point (if there are no elements smaller than or equal to the
starting point, hasPrevious() will return false).
Note that passing the last element of the set as starting point and
calling previous() you can traverse the
entire set in reverse order.
iterator in interface FloatSortedSetfrom - an element to start from.public FloatComparator comparator()
FloatSortedSetNote that this specification strengthens the one given in SortedSet.comparator().
comparator in interface FloatSortedSetcomparator in interface SortedSet<Float>public FloatSortedSet subSet(float from, float to)
FloatSortedSetfromElement, inclusive, to toElement, exclusive.
Note that this specification strengthens the one given in SortedSet.subSet(Object,Object).
subSet in interface FloatSortedSetSortedSet.subSet(Object,Object)public FloatSortedSet headSet(float to)
FloatSortedSettoElement.
Note that this specification strengthens the one given in SortedSet.headSet(Object).
headSet in interface FloatSortedSetSortedSet.headSet(Object)public FloatSortedSet tailSet(float from)
FloatSortedSetfromElement.
Note that this specification strengthens the one given in SortedSet.headSet(Object).
tailSet in interface FloatSortedSetSortedSet.tailSet(Object)public float firstFloat()
FloatSortedSetfirstFloat in interface FloatSortedSetSortedSet.first()public float lastFloat()
FloatSortedSetlastFloat in interface FloatSortedSetSortedSet.last()@Deprecated public FloatSortedSet subSet(Float from, Float to)
subSet in interface FloatSortedSetsubSet in interface SortedSet<Float>@Deprecated public FloatSortedSet headSet(Float to)
headSet in interface FloatSortedSetheadSet in interface SortedSet<Float>@Deprecated public FloatSortedSet tailSet(Float from)
tailSet in interface FloatSortedSettailSet in interface SortedSet<Float>@Deprecated public Float first()
first in interface FloatSortedSetfirst in interface SortedSet<Float>@Deprecated public Float last()
last in interface FloatSortedSetlast in interface SortedSet<Float>Copyright © 2020. All rights reserved.