public static class LongCollections.IterableCollection extends AbstractLongCollection implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected LongIterable |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableCollection(LongIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
it.unimi.dsi.fastutil.longs.LongIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
it.unimi.dsi.fastutil.longs.LongIterator |
longIterator()
Returns a primitive iterator on the elements of this collection.
|
it.unimi.dsi.fastutil.longs.LongSpliterator |
longSpliterator()
Returns a primitive spliterator on the elements of this collection.
|
int |
size() |
it.unimi.dsi.fastutil.longs.LongSpliterator |
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, toLongArray, toLongArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlongParallelStream, longStream, parallelStream, removeIf, removeIf, streamforEach, forEachprotected final LongIterable iterable
protected IterableCollection(LongIterable iterable)
public int size()
size in interface java.util.Collection<java.lang.Long>size in class java.util.AbstractCollection<java.lang.Long>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Long>isEmpty in class java.util.AbstractCollection<java.lang.Long>public it.unimi.dsi.fastutil.longs.LongIterator iterator()
LongCollectioniterator in interface LongCollectioniterator in interface LongIterableiterator in interface java.lang.Iterable<java.lang.Long>iterator in interface java.util.Collection<java.lang.Long>iterator in class AbstractLongCollectionIterable.iterator()public it.unimi.dsi.fastutil.longs.LongSpliterator spliterator()
LongCollectionSee Collection.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface LongCollectionspliterator in interface LongIterablespliterator in interface java.lang.Iterable<java.lang.Long>spliterator in interface java.util.Collection<java.lang.Long>public it.unimi.dsi.fastutil.longs.LongIterator longIterator()
LongCollection
This method is identical to LongCollection.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.
longIterator in interface LongCollectionlongIterator in interface LongIterablepublic it.unimi.dsi.fastutil.longs.LongSpliterator longSpliterator()
LongCollection
This method is identical to LongCollection.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.
longSpliterator in interface LongCollectionlongSpliterator in interface LongIterable