Package it.unimi.dsi.fastutil.objects
Class AbstractReferenceSortedSet<K>
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceCollection<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceSet<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceSortedSet<K>
- All Implemented Interfaces:
ObjectBidirectionalIterable<K>,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
Modifier and Type Method Description abstract ObjectBidirectionalIterator<K>iterator()Returns a type-specific iterator on the elements of this collection.Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceSortedSet
headSet, iterator, subSet, tailSet
-
Method Details
-
iterator
Description copied from interface:ReferenceCollectionReturns 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 extendsCollection.- Specified by:
iteratorin interfaceCollection<K>- Specified by:
iteratorin interfaceIterable<K>- Specified by:
iteratorin interfaceObjectBidirectionalIterable<K>- Specified by:
iteratorin interfaceObjectIterable<K>- Specified by:
iteratorin interfaceReferenceCollection<K>- Specified by:
iteratorin interfaceReferenceSet<K>- Specified by:
iteratorin interfaceReferenceSortedSet<K>- Specified by:
iteratorin interfaceSet<K>- Specified by:
iteratorin classAbstractReferenceSet<K>- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
Iterable.iterator()
-