it.unimi.dsi.fastutil.floats
Class AbstractFloatSortedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.AbstractFloatCollection
      extended by it.unimi.dsi.fastutil.floats.AbstractFloatSet
          extended by it.unimi.dsi.fastutil.floats.AbstractFloatSortedSet
All Implemented Interfaces:
FloatCollection, FloatIterable, FloatSet, FloatSortedSet, java.lang.Cloneable, java.lang.Iterable<java.lang.Float>, java.util.Collection<java.lang.Float>, java.util.Set<java.lang.Float>, java.util.SortedSet<java.lang.Float>
Direct Known Subclasses:
FloatAVLTreeSet, FloatLinkedOpenHashSet, FloatRBTreeSet

public abstract class AbstractFloatSortedSet
extends AbstractFloatSet
implements FloatSortedSet

An abstract class providing basic methods for sorted sets implementing a type-specific interface.


Method Summary
 java.lang.Float first()
          Delegates to the corresponding type-specific method.
 FloatBidirectionalIterator floatIterator()
          Deprecated. 
 FloatSortedSet headSet(java.lang.Float to)
          Delegates to the corresponding type-specific method.
abstract  FloatBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 java.lang.Float last()
          Delegates to the corresponding type-specific method.
 FloatSortedSet subSet(java.lang.Float from, java.lang.Float to)
          Delegates to the corresponding type-specific method.
 FloatSortedSet tailSet(java.lang.Float from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
add, add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toFloatArray, toFloatArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatSortedSet
comparator, firstFloat, headSet, iterator, lastFloat, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatSet
remove
 
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
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

headSet

public FloatSortedSet headSet(java.lang.Float to)
Delegates to the corresponding type-specific method.

Specified by:
headSet in interface FloatSortedSet
Specified by:
headSet in interface java.util.SortedSet<java.lang.Float>
See Also:
SortedSet.headSet(Object)

tailSet

public FloatSortedSet tailSet(java.lang.Float from)
Delegates to the corresponding type-specific method.

Specified by:
tailSet in interface FloatSortedSet
Specified by:
tailSet in interface java.util.SortedSet<java.lang.Float>
See Also:
SortedSet.tailSet(Object)

subSet

public FloatSortedSet subSet(java.lang.Float from,
                             java.lang.Float to)
Delegates to the corresponding type-specific method.

Specified by:
subSet in interface FloatSortedSet
Specified by:
subSet in interface java.util.SortedSet<java.lang.Float>
See Also:
SortedSet.subSet(Object,Object)

first

public java.lang.Float first()
Delegates to the corresponding type-specific method.

Specified by:
first in interface java.util.SortedSet<java.lang.Float>

last

public java.lang.Float last()
Delegates to the corresponding type-specific method.

Specified by:
last in interface java.util.SortedSet<java.lang.Float>

floatIterator

@Deprecated
public FloatBidirectionalIterator floatIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
floatIterator in interface FloatCollection
Specified by:
floatIterator in interface FloatSortedSet
Overrides:
floatIterator in class AbstractFloatCollection
See Also:
FloatCollection.iterator()

iterator

public abstract FloatBidirectionalIterator iterator()
Description copied from interface: FloatCollection
Returns a type-specific iterator on the elements of this collection.

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.

Specified by:
iterator in interface FloatCollection
Specified by:
iterator in interface FloatIterable
Specified by:
iterator in interface FloatSet
Specified by:
iterator in interface FloatSortedSet
Specified by:
iterator in interface java.lang.Iterable<java.lang.Float>
Specified by:
iterator in interface java.util.Collection<java.lang.Float>
Specified by:
iterator in interface java.util.Set<java.lang.Float>
Specified by:
iterator in class AbstractFloatSet
Returns:
a type-specific iterator on the elements of this collection.