|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<Float>
it.unimi.dsi.fastutil.floats.AbstractFloatCollection
it.unimi.dsi.fastutil.floats.FloatCollections.EmptyCollection
it.unimi.dsi.fastutil.floats.FloatSets.EmptySet
it.unimi.dsi.fastutil.floats.FloatSortedSets.EmptySet
public static class FloatSortedSets.EmptySet
An immutable class representing the empty sorted set and implementing a type-specific set interface.
This class may be useful to implement your own in case you subclass a type-specific sorted set.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Method Summary | |
---|---|
Object |
clone()
|
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 from)
|
FloatSortedSet |
headSet(Float from)
Returns a view of the portion of this sorted set whose elements are strictly less than toElement . |
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()
|
boolean |
remove(float ok)
Removes an element from this set. |
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 to)
|
FloatSortedSet |
tailSet(Float to)
Returns a view of the portion of this sorted set whose elements are greater than or equal to fromElement . |
Methods inherited from class it.unimi.dsi.fastutil.floats.FloatCollections.EmptyCollection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, iterator, rem, removeAll, retainAll, size, toArray, toFloatArray, toFloatArray |
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection |
---|
add, addAll, contains, containsAll, isEmpty, rem, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatSortedSet |
---|
iterator |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
---|
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
Field Detail |
---|
public static final long serialVersionUID
Method Detail |
---|
public boolean remove(float ok)
FloatSet
Note that the corresponding method of the type-specific collection is rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface FloatSet
remove
in class FloatSets.EmptySet
Collection.remove(Object)
@Deprecated public FloatBidirectionalIterator floatIterator()
AbstractFloatCollection
floatIterator
in interface FloatCollection
floatIterator
in interface FloatSortedSet
floatIterator
in class AbstractFloatCollection
FloatCollection.iterator()
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.
public FloatSortedSet subSet(float from, float to)
subSet
in interface FloatSortedSet
SortedSet.subSet(Object,Object)
public FloatSortedSet headSet(float from)
headSet
in interface FloatSortedSet
SortedSet.headSet(Object)
public FloatSortedSet tailSet(float to)
tailSet
in interface FloatSortedSet
SortedSet.tailSet(Object)
public float firstFloat()
firstFloat
in interface FloatSortedSet
SortedSet.first()
public float lastFloat()
lastFloat
in interface FloatSortedSet
SortedSet.last()
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)
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 from)
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 to)
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)
public Float first()
first
in interface SortedSet<Float>
public Float last()
last
in interface SortedSet<Float>
public Object clone()
clone
in class FloatSets.EmptySet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |