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

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
      extended by it.unimi.dsi.fastutil.objects.AbstractObjectSet<K>
          extended by it.unimi.dsi.fastutil.objects.AbstractObjectSortedSet<K>
All Implemented Interfaces:
ObjectCollection<K>, ObjectIterable<K>, ObjectSet<K>, ObjectSortedSet<K>, Cloneable, Iterable<K>, Collection<K>, Set<K>, SortedSet<K>
Direct Known Subclasses:
ObjectAVLTreeSet, ObjectLinkedOpenCustomHashSet, ObjectLinkedOpenHashSet, ObjectRBTreeSet

public abstract class AbstractObjectSortedSet<K>
extends AbstractObjectSet<K>
implements ObjectSortedSet<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.AbstractObjectSet
equals, hashCode, remove
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
add, addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectSortedSet
headSet, iterator, subSet, tailSet
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectSet
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectCollection
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 ObjectCollection<K>
Specified by:
objectIterator in interface ObjectSortedSet<K>
Overrides:
objectIterator in class AbstractObjectCollection<K>
See Also:
ObjectCollection.iterator()

iterator

public abstract ObjectBidirectionalIterator<K> iterator()
Description copied from interface: ObjectCollection
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 ObjectCollection<K>
Specified by:
iterator in interface ObjectIterable<K>
Specified by:
iterator in interface ObjectSet<K>
Specified by:
iterator in interface ObjectSortedSet<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 AbstractObjectSet<K>
Returns:
a type-specific iterator on the elements of this collection.