it.unimi.dsi.fastutil.bytes
Class AbstractByteSortedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.AbstractByteCollection
      extended by it.unimi.dsi.fastutil.bytes.AbstractByteSet
          extended by it.unimi.dsi.fastutil.bytes.AbstractByteSortedSet
All Implemented Interfaces:
ByteCollection, ByteIterable, ByteSet, ByteSortedSet, Cloneable, Iterable<Byte>, Collection<Byte>, Set<Byte>, SortedSet<Byte>
Direct Known Subclasses:
ByteAVLTreeSet, ByteLinkedOpenHashSet, ByteRBTreeSet

public abstract class AbstractByteSortedSet
extends AbstractByteSet
implements ByteSortedSet

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


Method Summary
 ByteBidirectionalIterator byteIterator()
          Deprecated. 
 Byte first()
          Delegates to the corresponding type-specific method.
 ByteSortedSet headSet(Byte to)
          Delegates to the corresponding type-specific method.
abstract  ByteBidirectionalIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 Byte last()
          Delegates to the corresponding type-specific method.
 ByteSortedSet subSet(Byte from, Byte to)
          Delegates to the corresponding type-specific method.
 ByteSortedSet tailSet(Byte from)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteSet
equals, hashCode, rem, remove, remove
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection
add, add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toByteArray, toByteArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSortedSet
comparator, firstByte, headSet, iterator, lastByte, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toByteArray, toByteArray
 
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 ByteSortedSet headSet(Byte to)
Delegates to the corresponding type-specific method.

Specified by:
headSet in interface ByteSortedSet
Specified by:
headSet in interface SortedSet<Byte>
See Also:
SortedSet.headSet(Object)

tailSet

public ByteSortedSet tailSet(Byte from)
Delegates to the corresponding type-specific method.

Specified by:
tailSet in interface ByteSortedSet
Specified by:
tailSet in interface SortedSet<Byte>
See Also:
SortedSet.tailSet(Object)

subSet

public ByteSortedSet subSet(Byte from,
                            Byte to)
Delegates to the corresponding type-specific method.

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

first

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

Specified by:
first in interface SortedSet<Byte>

last

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

Specified by:
last in interface SortedSet<Byte>

byteIterator

@Deprecated
public ByteBidirectionalIterator byteIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
byteIterator in interface ByteCollection
Specified by:
byteIterator in interface ByteSortedSet
Overrides:
byteIterator in class AbstractByteCollection
See Also:
ByteCollection.iterator()

iterator

public abstract ByteBidirectionalIterator iterator()
Description copied from interface: ByteCollection
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 ByteCollection
Specified by:
iterator in interface ByteIterable
Specified by:
iterator in interface ByteSet
Specified by:
iterator in interface ByteSortedSet
Specified by:
iterator in interface Iterable<Byte>
Specified by:
iterator in interface Collection<Byte>
Specified by:
iterator in interface Set<Byte>
Specified by:
iterator in class AbstractByteSet
Returns:
a type-specific iterator on the elements of this collection.