public static class IntCollections.IterableCollection extends AbstractIntCollection implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected IntIterable |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableCollection(IntIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.ints.IntIterator |
intIterator()
Returns a primitive iterator on the elements of this collection.
|
it.unimi.dsi.fastutil.ints.IntSpliterator |
intSpliterator()
Returns a primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
it.unimi.dsi.fastutil.ints.IntIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
it.unimi.dsi.fastutil.ints.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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitintParallelStream, intStream, parallelStream, removeIf, removeIf, streamforEach, forEachprotected final IntIterable iterable
protected IterableCollection(IntIterable iterable)
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 it.unimi.dsi.fastutil.ints.IntIterator iterator()
IntCollectioniterator in interface IntCollectioniterator in interface IntIterableiterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in class AbstractIntCollectionIterable.iterator()public it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()
IntCollectionSee Collection.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface IntCollectionspliterator in interface IntIterablespliterator in interface java.lang.Iterable<java.lang.Integer>spliterator in interface java.util.Collection<java.lang.Integer>public it.unimi.dsi.fastutil.ints.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' Collections
that have use for widened iterators.
intIterator in interface IntCollectionintIterator in interface IntIterablepublic it.unimi.dsi.fastutil.ints.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' Collections
that have use for widened spliterators.
intSpliterator in interface IntCollectionintSpliterator in interface IntIterable