it.unimi.dsi.fastutil.ints
Class AbstractIntSortedSet

java.lang.Object
  extended by java.util.AbstractCollection<Integer>
      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, Cloneable, Iterable<Integer>, Collection<Integer>, Set<Integer>, SortedSet<Integer>
Direct Known Subclasses:
IntAVLTreeSet, IntLinkedOpenCustomHashSet, 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
 Integer first()
          Delegates to the corresponding type-specific method.
 IntSortedSet headSet(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.
 Integer last()
          Delegates to the corresponding type-specific method.
 IntSortedSet subSet(Integer from, Integer to)
          Delegates to the corresponding type-specific method.
 IntSortedSet tailSet(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, contains, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toIntArray, toIntArray, toString
 
Methods inherited from class java.util.AbstractCollection
clear, size
 
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
 

Method Detail

headSet

public IntSortedSet headSet(Integer to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

Specified by:
first in interface SortedSet<Integer>

last

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

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