it.unimi.dsi.fastutil.ints
Class AbstractIntSortedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntCollection
      extended by it.unimi.dsi.fastutil.ints.AbstractIntSet
          extended by it.unimi.dsi.fastutil.ints.AbstractIntSortedSet
All Implemented Interfaces:
IntCollection, IntIterable, IntSet, IntSortedSet, java.lang.Cloneable, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.Set<java.lang.Integer>, java.util.SortedSet<java.lang.Integer>
Direct Known Subclasses:
IntAVLTreeSet, IntLinkedOpenHashSet, IntRBTreeSet

public abstract class AbstractIntSortedSet
extends AbstractIntSet
implements IntSortedSet

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


Method Summary
 java.lang.Integer first()
          Delegates to the corresponding type-specific method.
 IntSortedSet headSet(java.lang.Integer to)
          Delegates to the corresponding type-specific method.
 IntBidirectionalIterator intIterator()
          Deprecated. 
abstract  IntBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 java.lang.Integer last()
          Delegates to the corresponding type-specific method.
 IntSortedSet subSet(java.lang.Integer from, java.lang.Integer to)
          Delegates to the corresponding type-specific method.
 IntSortedSet tailSet(java.lang.Integer from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntCollection
add, add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toIntArray, toIntArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntSortedSet
comparator, firstInt, headSet, iterator, lastInt, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toIntArray, toIntArray
 
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 IntSortedSet headSet(java.lang.Integer to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

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

last

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

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

intIterator

@Deprecated
public IntBidirectionalIterator intIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
intIterator in interface IntCollection
Specified by:
intIterator in interface IntSortedSet
Overrides:
intIterator in class AbstractIntCollection
See Also:
IntCollection.iterator()

iterator

public abstract IntBidirectionalIterator iterator()
Description copied from interface: IntCollection
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 IntCollection
Specified by:
iterator in interface IntIterable
Specified by:
iterator in interface IntSet
Specified by:
iterator in interface IntSortedSet
Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>
Specified by:
iterator in interface java.util.Collection<java.lang.Integer>
Specified by:
iterator in interface java.util.Set<java.lang.Integer>
Specified by:
iterator in class AbstractIntSet
Returns:
a type-specific iterator on the elements of this collection.