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.
| Modifier and Type | Method and Description |
|---|---|
FloatComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it
uses its elements' natural ordering.
|
Float |
first()
Deprecated.
Please use the corresponding type-specific method
instead.
|
float |
firstFloat() |
FloatBidirectionalIterator |
floatIterator()
Deprecated.
|
FloatSortedSet |
headSet(float to) |
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() |
FloatSortedSet |
subSet(float from,
float to) |
FloatSortedSet |
subSet(Float from,
Float to)
Deprecated.
Please use the corresponding type-specific method
instead.
|
FloatSortedSet |
tailSet(float from) |
FloatSortedSet |
tailSet(Float from)
Deprecated.
Please use the corresponding type-specific method
instead.
|
add, addAll, addAll, clone, contains, iterator, removeAll, removeAll, retainAll, retainAll, size, toFloatArrayequals, hashCode, removeadd, contains, containsAll, containsAll, isEmpty, rem, rem, remove, toArray, toArray, toArray, toFloatArray, toStringcleariteratoradd, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArrayspliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, stream@Deprecated public FloatBidirectionalIterator floatIterator()
AbstractFloatCollectionfloatIterator in interface FloatCollectionfloatIterator in interface FloatSortedSetfloatIterator in class AbstractFloatCollectionFloatCollection.iterator()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()
FloatSortedSet
Note that this specification strengthens the one given in
SortedSet.comparator().
comparator in interface FloatSortedSetcomparator in interface SortedSet<Float>SortedSet.comparator()public FloatSortedSet subSet(float from, float to)
subSet in interface FloatSortedSetSortedSet.subSet(Object,Object)public FloatSortedSet headSet(float to)
headSet in interface FloatSortedSetSortedSet.headSet(Object)public FloatSortedSet tailSet(float from)
tailSet in interface FloatSortedSetSortedSet.tailSet(Object)public float firstFloat()
firstFloat in interface FloatSortedSetSortedSet.first()public float lastFloat()
lastFloat in interface FloatSortedSetSortedSet.last()@Deprecated public Float first()
@Deprecated public Float last()
@Deprecated public FloatSortedSet subSet(Float from, Float to)
fromElement, inclusive, to toElement,
exclusive.
Note that this specification strengthens the one given in
SortedSet.subSet(Object,Object).
subSet in interface FloatSortedSetsubSet in interface SortedSet<Float>SortedSet.subSet(Object,Object)@Deprecated public FloatSortedSet headSet(Float to)
toElement.
Note that this specification strengthens the one given in
SortedSet.headSet(Object).
headSet in interface FloatSortedSetheadSet in interface SortedSet<Float>SortedSet.headSet(Object)@Deprecated public FloatSortedSet tailSet(Float from)
fromElement.
Note that this specification strengthens the one given in
SortedSet.tailSet(Object).
tailSet in interface FloatSortedSettailSet in interface SortedSet<Float>SortedSet.tailSet(Object)