it.unimi.dsi.fastutil.doubles
Class AbstractDoubleSortedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection
      extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleSet
          extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleSortedSet
All Implemented Interfaces:
DoubleCollection, DoubleIterable, DoubleSet, DoubleSortedSet, java.lang.Cloneable, java.lang.Iterable<java.lang.Double>, java.util.Collection<java.lang.Double>, java.util.Set<java.lang.Double>, java.util.SortedSet<java.lang.Double>
Direct Known Subclasses:
DoubleAVLTreeSet, DoubleLinkedOpenHashSet, DoubleRBTreeSet

public abstract class AbstractDoubleSortedSet
extends AbstractDoubleSet
implements DoubleSortedSet

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


Method Summary
 DoubleBidirectionalIterator doubleIterator()
          Deprecated. 
 java.lang.Double first()
          Delegates to the corresponding type-specific method.
 DoubleSortedSet headSet(java.lang.Double to)
          Delegates to the corresponding type-specific method.
abstract  DoubleBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 java.lang.Double last()
          Delegates to the corresponding type-specific method.
 DoubleSortedSet subSet(java.lang.Double from, java.lang.Double to)
          Delegates to the corresponding type-specific method.
 DoubleSortedSet tailSet(java.lang.Double from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection
add, add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toDoubleArray, toDoubleArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleSortedSet
comparator, firstDouble, headSet, iterator, lastDouble, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArray
 
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 DoubleSortedSet headSet(java.lang.Double to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

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

last

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

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

doubleIterator

@Deprecated
public DoubleBidirectionalIterator doubleIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
doubleIterator in interface DoubleCollection
Specified by:
doubleIterator in interface DoubleSortedSet
Overrides:
doubleIterator in class AbstractDoubleCollection
See Also:
DoubleCollection.iterator()

iterator

public abstract DoubleBidirectionalIterator iterator()
Description copied from interface: DoubleCollection
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 DoubleCollection
Specified by:
iterator in interface DoubleIterable
Specified by:
iterator in interface DoubleSet
Specified by:
iterator in interface DoubleSortedSet
Specified by:
iterator in interface java.lang.Iterable<java.lang.Double>
Specified by:
iterator in interface java.util.Collection<java.lang.Double>
Specified by:
iterator in interface java.util.Set<java.lang.Double>
Specified by:
iterator in class AbstractDoubleSet
Returns:
a type-specific iterator on the elements of this collection.