public static class ByteCollections.IterableCollection extends AbstractByteCollection implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
IntIterator |
intIterator()
Returns a widened primitive iterator on the elements of this collection.
|
IntSpliterator |
intSpliterator()
Returns widened primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
ByteIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
ByteSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this collection.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toByteArray, toByteArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
intParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, stream
forEach, forEach, forEach
public int size()
size
in interface java.util.Collection<java.lang.Byte>
size
in class java.util.AbstractCollection<java.lang.Byte>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Byte>
isEmpty
in class java.util.AbstractCollection<java.lang.Byte>
public ByteIterator iterator()
ByteCollection
iterator
in interface ByteCollection
iterator
in interface ByteIterable
iterator
in interface java.lang.Iterable<java.lang.Byte>
iterator
in interface java.util.Collection<java.lang.Byte>
iterator
in class AbstractByteCollection
Iterable.iterator()
public ByteSpliterator spliterator()
ByteCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface ByteCollection
spliterator
in interface ByteIterable
spliterator
in interface java.lang.Iterable<java.lang.Byte>
spliterator
in interface java.util.Collection<java.lang.Byte>
public IntIterator intIterator()
ByteCollection
This method is provided for the purpose of APIs that expect only the JDK's
primitive iterators, of which there are only int
, long
, and double
.
intIterator
in interface ByteCollection
intIterator
in interface ByteIterable
public IntSpliterator intSpliterator()
ByteCollection
This method is provided for the purpose of APIs that expect only the JDK's
primitive spliterators, of which there are only int
, long
, and double
.
intSpliterator
in interface ByteCollection
intSpliterator
in interface ByteIterable