public static class ShortCollections.IterableCollection extends AbstractShortCollection implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ShortIterable |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableCollection(ShortIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.ints.IntIterator |
intIterator()
Returns a widened primitive iterator on the elements of this collection.
|
it.unimi.dsi.fastutil.ints.IntSpliterator |
intSpliterator()
Returns widened primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
it.unimi.dsi.fastutil.shorts.ShortIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
it.unimi.dsi.fastutil.shorts.ShortSpliterator |
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, toShortArray, toShortArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitintParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, streamforEach, forEach, forEachprotected final ShortIterable iterable
protected IterableCollection(ShortIterable iterable)
public int size()
size in interface java.util.Collection<java.lang.Short>size in class java.util.AbstractCollection<java.lang.Short>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Short>isEmpty in class java.util.AbstractCollection<java.lang.Short>public it.unimi.dsi.fastutil.shorts.ShortIterator iterator()
ShortCollectioniterator in interface ShortCollectioniterator in interface ShortIterableiterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in class AbstractShortCollectionIterable.iterator()public it.unimi.dsi.fastutil.shorts.ShortSpliterator spliterator()
ShortCollectionSee Collection.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface ShortCollectionspliterator in interface ShortIterablespliterator in interface java.lang.Iterable<java.lang.Short>spliterator in interface java.util.Collection<java.lang.Short>public it.unimi.dsi.fastutil.ints.IntIterator intIterator()
ShortCollection
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 ShortCollectionintIterator in interface ShortIterablepublic it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
ShortCollection
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 ShortCollectionintSpliterator in interface ShortIterable