it.unimi.dsi.fastutil.shorts
Class AbstractShortSortedSet

java.lang.Object
  extended by java.util.AbstractCollection<java.lang.Short>
      extended by it.unimi.dsi.fastutil.shorts.AbstractShortCollection
          extended by it.unimi.dsi.fastutil.shorts.AbstractShortSet
              extended by it.unimi.dsi.fastutil.shorts.AbstractShortSortedSet
All Implemented Interfaces:
ShortCollection, ShortIterable, ShortSet, ShortSortedSet, java.lang.Cloneable, java.lang.Iterable<java.lang.Short>, java.util.Collection<java.lang.Short>, java.util.Set<java.lang.Short>, java.util.SortedSet<java.lang.Short>
Direct Known Subclasses:
ShortAVLTreeSet, ShortLinkedOpenCustomHashSet, ShortLinkedOpenHashSet, ShortRBTreeSet

public abstract class AbstractShortSortedSet
extends AbstractShortSet
implements ShortSortedSet

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


Method Summary
 java.lang.Short first()
          Delegates to the corresponding type-specific method.
 ShortSortedSet headSet(java.lang.Short to)
          Delegates to the corresponding type-specific method.
abstract  ShortBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 java.lang.Short last()
          Delegates to the corresponding type-specific method.
 ShortBidirectionalIterator shortIterator()
          Deprecated. 
 ShortSortedSet subSet(java.lang.Short from, java.lang.Short to)
          Delegates to the corresponding type-specific method.
 ShortSortedSet tailSet(java.lang.Short from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortCollection
add, add, addAll, addAll, contains, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toShortArray, toShortArray, 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.shorts.ShortSortedSet
comparator, firstShort, headSet, iterator, lastShort, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toShortArray, toShortArray
 
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 ShortSortedSet headSet(java.lang.Short to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

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

last

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

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

shortIterator

@Deprecated
public ShortBidirectionalIterator shortIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
shortIterator in interface ShortCollection
Specified by:
shortIterator in interface ShortSortedSet
Overrides:
shortIterator in class AbstractShortCollection
See Also:
ShortCollection.iterator()

iterator

public abstract ShortBidirectionalIterator iterator()
Description copied from interface: ShortCollection
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 ShortCollection
Specified by:
iterator in interface ShortIterable
Specified by:
iterator in interface ShortSet
Specified by:
iterator in interface ShortSortedSet
Specified by:
iterator in interface java.lang.Iterable<java.lang.Short>
Specified by:
iterator in interface java.util.Collection<java.lang.Short>
Specified by:
iterator in interface java.util.Set<java.lang.Short>
Specified by:
iterator in class AbstractShortSet
Returns:
a type-specific iterator on the elements of this collection.