it.unimi.dsi.fastutil.chars
Class AbstractCharSortedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.chars.AbstractCharCollection
      extended by it.unimi.dsi.fastutil.chars.AbstractCharSet
          extended by it.unimi.dsi.fastutil.chars.AbstractCharSortedSet
All Implemented Interfaces:
CharCollection, CharIterable, CharSet, CharSortedSet, java.lang.Cloneable, java.lang.Iterable<java.lang.Character>, java.util.Collection<java.lang.Character>, java.util.Set<java.lang.Character>, java.util.SortedSet<java.lang.Character>
Direct Known Subclasses:
CharAVLTreeSet, CharLinkedOpenHashSet, CharRBTreeSet

public abstract class AbstractCharSortedSet
extends AbstractCharSet
implements CharSortedSet

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


Method Summary
 CharBidirectionalIterator charIterator()
          Deprecated. 
 java.lang.Character first()
          Delegates to the corresponding type-specific method.
 CharSortedSet headSet(java.lang.Character to)
          Delegates to the corresponding type-specific method.
abstract  CharBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 java.lang.Character last()
          Delegates to the corresponding type-specific method.
 CharSortedSet subSet(java.lang.Character from, java.lang.Character to)
          Delegates to the corresponding type-specific method.
 CharSortedSet tailSet(java.lang.Character from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection
add, add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toCharArray, toCharArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharSortedSet
comparator, firstChar, headSet, iterator, lastChar, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toCharArray, toCharArray
 
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 CharSortedSet headSet(java.lang.Character to)
Delegates to the corresponding type-specific method.

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

tailSet

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

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

subSet

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

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

first

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

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

last

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

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

charIterator

@Deprecated
public CharBidirectionalIterator charIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
charIterator in interface CharCollection
Specified by:
charIterator in interface CharSortedSet
Overrides:
charIterator in class AbstractCharCollection
See Also:
CharCollection.iterator()

iterator

public abstract CharBidirectionalIterator iterator()
Description copied from interface: CharCollection
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 CharCollection
Specified by:
iterator in interface CharIterable
Specified by:
iterator in interface CharSet
Specified by:
iterator in interface CharSortedSet
Specified by:
iterator in interface java.lang.Iterable<java.lang.Character>
Specified by:
iterator in interface java.util.Collection<java.lang.Character>
Specified by:
iterator in interface java.util.Set<java.lang.Character>
Specified by:
iterator in class AbstractCharSet
Returns:
a type-specific iterator on the elements of this collection.