Package it.unimi.dsi.fastutil.objects
Interface ReferenceCollection<K>
-
- All Superinterfaces:
java.util.Collection<K>
,java.lang.Iterable<K>
,ObjectIterable<K>
- All Known Subinterfaces:
ReferenceBigList<K>
,ReferenceList<K>
,ReferenceSet<K>
,ReferenceSortedSet<K>
- All Known Implementing Classes:
AbstractReferenceBigList
,AbstractReferenceBigList.ReferenceSubList
,AbstractReferenceCollection
,AbstractReferenceList
,AbstractReferenceList.ReferenceSubList
,AbstractReferenceSet
,AbstractReferenceSortedSet
,ReferenceArrayList
,ReferenceArraySet
,ReferenceBigArrayBigList
,ReferenceBigLists.EmptyBigList
,ReferenceBigLists.ListBigList
,ReferenceBigLists.Singleton
,ReferenceBigLists.SynchronizedBigList
,ReferenceBigLists.UnmodifiableBigList
,ReferenceCollections.EmptyCollection
,ReferenceCollections.IterableCollection
,ReferenceCollections.SynchronizedCollection
,ReferenceCollections.UnmodifiableCollection
,ReferenceLinkedOpenHashSet
,ReferenceLists.EmptyList
,ReferenceLists.Singleton
,ReferenceLists.SynchronizedList
,ReferenceLists.SynchronizedRandomAccessList
,ReferenceLists.UnmodifiableList
,ReferenceLists.UnmodifiableRandomAccessList
,ReferenceOpenHashBigSet
,ReferenceOpenHashSet
,ReferenceSets.EmptySet
,ReferenceSets.Singleton
,ReferenceSets.SynchronizedSet
,ReferenceSets.UnmodifiableSet
,ReferenceSortedSets.EmptySet
,ReferenceSortedSets.Singleton
,ReferenceSortedSets.SynchronizedSortedSet
,ReferenceSortedSets.UnmodifiableSortedSet
public interface ReferenceCollection<K> extends java.util.Collection<K>, ObjectIterable<K>
A type-specificCollection
; provides some additional methods that use polymorphism to avoid (un)boxing.Additionally, this class defines strengthens (again)
iterator()
.- See Also:
Collection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectIterator<K>
iterator()
Returns a type-specific iterator on the elements of this collection.
-
-
-
Method Detail
-
iterator
ObjectIterator<K> iterator()
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 extendsCollection
.- Specified by:
iterator
in interfacejava.util.Collection<K>
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
- Specified by:
iterator
in interfaceObjectIterable<K>
- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
Iterable.iterator()
-
-