public static class IntCollections.IterableCollection extends AbstractIntCollection implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
IntIterator |
intIterator()
Returns a primitive iterator on the elements of this collection.
|
IntSpliterator |
intSpliterator()
Returns a primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
IntIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
IntSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this collection.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, forEach, rem, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toIntArray, toIntArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
intParallelStream, intStream, parallelStream, removeIf, removeIf, stream
forEach, forEach
public int size()
size
in interface java.util.Collection<java.lang.Integer>
size
in class java.util.AbstractCollection<java.lang.Integer>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Integer>
isEmpty
in class java.util.AbstractCollection<java.lang.Integer>
public IntIterator iterator()
IntCollection
iterator
in interface IntCollection
iterator
in interface IntIterable
iterator
in interface java.lang.Iterable<java.lang.Integer>
iterator
in interface java.util.Collection<java.lang.Integer>
iterator
in class AbstractIntCollection
Iterable.iterator()
public IntSpliterator spliterator()
IntCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface IntCollection
spliterator
in interface IntIterable
spliterator
in interface java.lang.Iterable<java.lang.Integer>
spliterator
in interface java.util.Collection<java.lang.Integer>
public IntIterator intIterator()
IntCollection
This method is identical to IntCollection.iterator()
, as the type-specific
iterator is already compatible with the JDK's primitive iterators.
It only exists for compatibility with the other primitive types' Collection
s
that have use for widened iterators.
intIterator
in interface IntCollection
intIterator
in interface IntIterable
public IntSpliterator intSpliterator()
IntCollection
This method is identical to IntCollection.spliterator()
, as the type-specific
spliterator is already compatible with the JDK's primitive spliterators.
It only exists for compatibility with the other primitive types' Collection
s
that have use for widened spliterators.
intSpliterator
in interface IntCollection
intSpliterator
in interface IntIterable