Package it.unimi.dsi.fastutil.objects
Interface ReferenceCollection<K>
- All Superinterfaces:
Collection<K>,Iterable<K>,it.unimi.dsi.fastutil.objects.ObjectIterable<K>
- All Known Subinterfaces:
ReferenceList<K>
- All Known Implementing Classes:
AbstractReferenceCollection,AbstractReferenceList,AbstractReferenceList.ReferenceRandomAccessSubList,AbstractReferenceList.ReferenceSubList,ReferenceArrayList,ReferenceArrayList.SubList,ReferenceCollections.EmptyCollection,ReferenceCollections.IterableCollection,ReferenceImmutableList,ReferenceLists.EmptyList,ReferenceLists.Singleton,ReferenceLists.SynchronizedList,ReferenceLists.SynchronizedRandomAccessList,ReferenceLists.UnmodifiableList,ReferenceLists.UnmodifiableRandomAccessList
public interface ReferenceCollection<K>
extends Collection<K>, it.unimi.dsi.fastutil.objects.ObjectIterable<K>
A type-specific
Collection; provides some additional methods
that use polymorphism to avoid (un)boxing.
Additionally, this class defines strengthens (again) iterator().
- See Also:
-
Method Summary
-
Method Details
-
iterator
it.unimi.dsi.fastutil.objects.ObjectIterator<K> iterator()Returns a type-specific iterator on the elements of this collection. -
spliterator
Returns a type-specific spliterator on the elements of this collection.See
Collection.spliterator()for more documentation on the requirements of the returned spliterator.- Specified by:
spliteratorin interfaceCollection<K>- Specified by:
spliteratorin interfaceIterable<K>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.objects.ObjectIterable<K>- Returns:
- a type-specific spliterator on the elements of this collection.
- Since:
- 8.5.0
-