Package it.unimi.dsi.fastutil.bytes
Class ByteCollections.IterableCollection
java.lang.Object
java.util.AbstractCollection<Byte>
it.unimi.dsi.fastutil.bytes.AbstractByteCollection
it.unimi.dsi.fastutil.bytes.ByteCollections.IterableCollection
- All Implemented Interfaces:
ByteCollection,ByteIterable,Serializable,Iterable<Byte>,Collection<Byte>
- Enclosing class:
ByteCollections
public static class ByteCollections.IterableCollection
extends AbstractByteCollection
implements Serializable
A collection wrapper class for iterables.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.IntIteratorReturns a widened primitive iterator on the elements of this collection.it.unimi.dsi.fastutil.ints.IntSpliteratorReturns widened primitive spliterator on the elements of this collection.booleanisEmpty()it.unimi.dsi.fastutil.bytes.ByteIteratoriterator()Returns a type-specific iterator on the elements of this collection.intsize()it.unimi.dsi.fastutil.bytes.ByteSpliteratorReturns a type-specific spliterator on the elements of this collection.Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toByteArray, toByteArray, toStringMethods inherited from class java.util.AbstractCollection
clear, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
intParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, streamMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterable
forEach, forEach, forEach
-
Field Details
-
iterable
-
-
Constructor Details
-
IterableCollection
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Byte>- Specified by:
sizein classAbstractCollection<Byte>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Byte>- Overrides:
isEmptyin classAbstractCollection<Byte>
-
iterator
public it.unimi.dsi.fastutil.bytes.ByteIterator iterator()Description copied from interface:ByteCollectionReturns a type-specific iterator on the elements of this collection.- Specified by:
iteratorin interfaceByteCollection- Specified by:
iteratorin interfaceByteIterable- Specified by:
iteratorin interfaceCollection<Byte>- Specified by:
iteratorin interfaceIterable<Byte>- Specified by:
iteratorin classAbstractByteCollection- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
-
spliterator
public it.unimi.dsi.fastutil.bytes.ByteSpliterator spliterator()Description copied from interface:ByteCollectionReturns 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 interfaceByteCollection- Specified by:
spliteratorin interfaceByteIterable- Specified by:
spliteratorin interfaceCollection<Byte>- Specified by:
spliteratorin interfaceIterable<Byte>- Returns:
- a type-specific spliterator on the elements of this collection.
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()Description copied from interface:ByteCollectionReturns a widened primitive iterator on the elements of this collection.This method is provided for the purpose of APIs that expect only the JDK's primitive iterators, of which there are only
int,long, anddouble.- Specified by:
intIteratorin interfaceByteCollection- Specified by:
intIteratorin interfaceByteIterable- Returns:
- a widened primitive iterator on the elements of this collection.
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()Description copied from interface:ByteCollectionReturns widened primitive spliterator on the elements of this collection.This method is provided for the purpose of APIs that expect only the JDK's primitive spliterators, of which there are only
int,long, anddouble.- Specified by:
intSpliteratorin interfaceByteCollection- Specified by:
intSpliteratorin interfaceByteIterable- Returns:
- a widened primitive spliterator on the elements of this collection.
-