it.unimi.dsi.fastutil.objects
Class AbstractReferenceSortedSet<K>

java.lang.Object
  extended by java.util.AbstractCollection<K>
      extended by it.unimi.dsi.fastutil.objects.AbstractReferenceCollection<K>
          extended by it.unimi.dsi.fastutil.objects.AbstractReferenceSet<K>
              extended by it.unimi.dsi.fastutil.objects.AbstractReferenceSortedSet<K>
All Implemented Interfaces:
ObjectIterable<K>, ReferenceCollection<K>, ReferenceSet<K>, ReferenceSortedSet<K>, Cloneable, Iterable<K>, Collection<K>, Set<K>, SortedSet<K>
Direct Known Subclasses:
ReferenceLinkedOpenHashSet

public abstract class AbstractReferenceSortedSet<K>
extends AbstractReferenceSet<K>
implements ReferenceSortedSet<K>

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


Method Summary
abstract  ObjectBidirectionalIterator<K> iterator()
          Returns a type-specific iterator on the elements of this collection.
 ObjectBidirectionalIterator<K> objectIterator()
          Deprecated. 
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceSet
equals, hashCode, remove
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.util.AbstractCollection
clear, contains, size
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceSortedSet
headSet, iterator, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection
toArray
 
Methods inherited from interface java.util.SortedSet
comparator, first, last
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray
 

Method Detail

objectIterator

@Deprecated
public ObjectBidirectionalIterator<K> objectIterator()
Deprecated. 

Delegates to the new covariantly stronger generic method.

Specified by:
objectIterator in interface ReferenceCollection<K>
Specified by:
objectIterator in interface ReferenceSortedSet<K>
Overrides:
objectIterator in class AbstractReferenceCollection<K>
See Also:
ReferenceCollection.iterator()

iterator

public abstract ObjectBidirectionalIterator<K> iterator()
Description copied from interface: ReferenceCollection
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 ObjectIterable<K>
Specified by:
iterator in interface ReferenceCollection<K>
Specified by:
iterator in interface ReferenceSet<K>
Specified by:
iterator in interface ReferenceSortedSet<K>
Specified by:
iterator in interface Iterable<K>
Specified by:
iterator in interface Collection<K>
Specified by:
iterator in interface Set<K>
Specified by:
iterator in class AbstractReferenceSet<K>
Returns:
a type-specific iterator on the elements of this collection.