public static class ShortCollections.IterableCollection extends AbstractShortCollection 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() |
ShortIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
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, 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.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 ShortIterator iterator()
ShortCollection
iterator
in interface ShortCollection
iterator
in interface ShortIterable
iterator
in interface java.lang.Iterable<java.lang.Short>
iterator
in interface java.util.Collection<java.lang.Short>
iterator
in class AbstractShortCollection
Iterable.iterator()
public ShortSpliterator spliterator()
ShortCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface ShortCollection
spliterator
in interface ShortIterable
spliterator
in interface java.lang.Iterable<java.lang.Short>
spliterator
in interface java.util.Collection<java.lang.Short>
public 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 ShortCollection
intIterator
in interface ShortIterable
public 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 ShortCollection
intSpliterator
in interface ShortIterable