Package it.unimi.dsi.fastutil.objects
Class ObjectCollections.IterableCollection<K>
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.ObjectCollections.IterableCollection<K>
- All Implemented Interfaces:
ObjectCollection<K>,ObjectIterable<K>,java.io.Serializable,java.lang.Iterable<K>,java.util.Collection<K>
- Enclosing class:
- ObjectCollections
public static class ObjectCollections.IterableCollection<K> extends AbstractObjectCollection<K> implements java.io.Serializable
A collection wrapper class for iterables.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description booleanisEmpty()ObjectIterator<K>iterator()Returns a type-specific iterator on the elements of this collection.intsize()ObjectSpliterator<K>spliterator()Returns a type-specific spliterator on the elements of this collection.Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection
toStringMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, stream, toArray, toArray, toArrayMethods inherited from interface java.lang.Iterable
forEach
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
Description copied from interface:ObjectCollectionReturns a type-specific iterator on the elements of this collection.- Specified by:
iteratorin interfacejava.util.Collection<K>- Specified by:
iteratorin interfacejava.lang.Iterable<K>- Specified by:
iteratorin interfaceObjectCollection<K>- Specified by:
iteratorin interfaceObjectIterable<K>- Specified by:
iteratorin classAbstractObjectCollection<K>- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
Iterable.iterator()
-
spliterator
Description copied from interface:ObjectCollectionReturns 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 interfacejava.util.Collection<K>- Specified by:
spliteratorin interfacejava.lang.Iterable<K>- Specified by:
spliteratorin interfaceObjectCollection<K>- Specified by:
spliteratorin interfaceObjectIterable<K>- Returns:
- a type-specific spliterator on the elements of this collection.
-