it.unimi.dsi.fastutil.objects
Interface ReferenceCollection

All Superinterfaces:
Collection
All Known Subinterfaces:
ReferenceList, ReferenceSet, ReferenceSortedSet
All Known Implementing Classes:
AbstractReferenceCollection, AbstractReferenceList, AbstractReferenceSet, AbstractReferenceSortedSet, Collections.EmptyCollection, Lists.EmptyList, ReferenceCollections.SynchronizedCollection, ReferenceLinkedOpenHashSet, ReferenceLists.SynchronizedList, ReferenceOpenHashSet, ReferenceSets.SynchronizedSet, ReferenceSortedSets.Singleton, ReferenceSortedSets.SynchronizedSortedSet, Sets.EmptySet

public interface ReferenceCollection
extends Collection

A type-specific Collection; provides some additional methods that use polymorphism to reduce type juggling.

Note that iterators provided by classes implementing this interface must be type specific.

See Also:
Collection

Method Summary
 ObjectIterator objectIterator()
          Returns a type-specific iterator on the collection.
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

objectIterator

public ObjectIterator objectIterator()
Returns a type-specific iterator on the collection.

The iterator returned by the Collection.iterator() method and by this method are identical; however, using this method you can save a type casting.

Since:
2.51
See Also:
Collection.iterator()