it.unimi.dsi.fastutil.doubles
Class AbstractDoubleSortedSet

java.lang.Object
  extended by java.util.AbstractCollection<Double>
      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, Cloneable, Iterable<Double>, Collection<Double>, Set<Double>, SortedSet<Double>
Direct Known Subclasses:
AbstractDouble2BooleanSortedMap.KeySet, AbstractDouble2ByteSortedMap.KeySet, AbstractDouble2CharSortedMap.KeySet, AbstractDouble2DoubleSortedMap.KeySet, AbstractDouble2FloatSortedMap.KeySet, AbstractDouble2IntSortedMap.KeySet, AbstractDouble2LongSortedMap.KeySet, AbstractDouble2ObjectSortedMap.KeySet, AbstractDouble2ReferenceSortedMap.KeySet, AbstractDouble2ShortSortedMap.KeySet, DoubleAVLTreeSet, DoubleLinkedOpenCustomHashSet, DoubleLinkedOpenHashSet, DoubleRBTreeSet

public abstract class AbstractDoubleSortedSet
extends AbstractDoubleSet
implements DoubleSortedSet

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


Constructor Summary
protected AbstractDoubleSortedSet()
           
 
Method Summary
 DoubleBidirectionalIterator doubleIterator()
          Deprecated. 
 Double first()
          Delegates to the corresponding type-specific method.
 DoubleSortedSet headSet(Double to)
          Delegates to the corresponding type-specific method.
abstract  DoubleBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 Double last()
          Delegates to the corresponding type-specific method.
 DoubleSortedSet subSet(Double from, Double to)
          Delegates to the corresponding type-specific method.
 DoubleSortedSet tailSet(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, contains, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toDoubleArray, toDoubleArray, toString
 
Methods inherited from class java.util.AbstractCollection
clear, size
 
Methods inherited from class java.lang.Object
clone, finalize, 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
 

Constructor Detail

AbstractDoubleSortedSet

protected AbstractDoubleSortedSet()
Method Detail

headSet

public DoubleSortedSet headSet(Double to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

Specified by:
first in interface SortedSet<Double>

last

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

Specified by:
last in interface SortedSet<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 Iterable<Double>
Specified by:
iterator in interface Collection<Double>
Specified by:
iterator in interface Set<Double>
Specified by:
iterator in class AbstractDoubleSet
Returns:
a type-specific iterator on the elements of this collection.


Copyright © 2011. All Rights Reserved.