public static class FloatSortedSets.SynchronizedSortedSet extends FloatSets.SynchronizedSet implements FloatSortedSet, Serializable
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() |
float |
firstFloat() |
FloatBidirectionalIterator |
floatIterator()
Deprecated.
|
FloatSortedSet |
headSet(float to) |
FloatSortedSet |
headSet(Float to)
Returns a view of the portion of this sorted set whose elements are strictly less than
toElement . |
FloatBidirectionalIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
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() |
float |
lastFloat() |
FloatSortedSet |
subSet(float from,
float to) |
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 |
tailSet(float from) |
FloatSortedSet |
tailSet(Float from)
Returns a view of the portion of this sorted set whose elements are greater than or equal to
fromElement . |
equals, hashCode, remove
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toFloatArray, toFloatArray, toString
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray
spliterator
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
public FloatComparator comparator()
FloatSortedSet
Note that this specification strengthens the one given in SortedSet.comparator()
.
comparator
in interface FloatSortedSet
comparator
in interface SortedSet<Float>
SortedSet.comparator()
public FloatSortedSet subSet(float from, float to)
subSet
in interface FloatSortedSet
SortedSet.subSet(Object,Object)
public FloatSortedSet headSet(float to)
headSet
in interface FloatSortedSet
SortedSet.headSet(Object)
public FloatSortedSet tailSet(float from)
tailSet
in interface FloatSortedSet
SortedSet.tailSet(Object)
public FloatBidirectionalIterator iterator()
FloatCollection
Note that this specification strengthens the one given in Iterable.iterator()
, which was already strengthened in the corresponding type-specific class, but was weakened by
the fact that this interface extends Collection
.
iterator
in interface FloatCollection
iterator
in interface FloatIterable
iterator
in interface FloatSet
iterator
in interface FloatSortedSet
iterator
in interface Iterable<Float>
iterator
in interface Collection<Float>
iterator
in interface Set<Float>
iterator
in class FloatCollections.SynchronizedCollection
public FloatBidirectionalIterator iterator(float from)
FloatSortedSet
BidirectionalIterator
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 FloatSortedSet
from
- an element to start from.@Deprecated public FloatBidirectionalIterator floatIterator()
FloatCollection
floatIterator
in interface FloatCollection
floatIterator
in interface FloatSortedSet
floatIterator
in class FloatCollections.SynchronizedCollection
FloatCollection.iterator()
public float firstFloat()
firstFloat
in interface FloatSortedSet
SortedSet.first()
public float lastFloat()
lastFloat
in interface FloatSortedSet
SortedSet.last()
public FloatSortedSet subSet(Float from, Float to)
FloatSortedSet
fromElement
, inclusive, to toElement
, exclusive.
Note that this specification strengthens the one given in SortedSet.subSet(Object,Object)
.
subSet
in interface FloatSortedSet
subSet
in interface SortedSet<Float>
SortedSet.subSet(Object,Object)
public FloatSortedSet headSet(Float to)
FloatSortedSet
toElement
.
Note that this specification strengthens the one given in SortedSet.headSet(Object)
.
headSet
in interface FloatSortedSet
headSet
in interface SortedSet<Float>
SortedSet.headSet(Object)
public FloatSortedSet tailSet(Float from)
FloatSortedSet
fromElement
.
Note that this specification strengthens the one given in SortedSet.tailSet(Object)
.
tailSet
in interface FloatSortedSet
tailSet
in interface SortedSet<Float>
SortedSet.tailSet(Object)