@Internal public abstract class ShortIteratorEx extends ShortIterator implements IteratorEx<Short>
Modifier and Type | Field and Description |
---|---|
static ShortIteratorEx |
EMPTY |
Constructor and Description |
---|
ShortIteratorEx() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
count() |
static ShortIteratorEx |
empty() |
static ShortIteratorEx |
from(Iterator<Short> iter) |
static ShortIteratorEx |
of(short... a) |
static ShortIteratorEx |
of(short[] a,
int fromIndex,
int toIndex) |
static ShortIteratorEx |
of(ShortIterator iter) |
static ShortIteratorEx |
of(Supplier<? extends ShortIterator> iteratorSupplier)
Lazy evaluation.
|
static ShortIteratorEx |
oF(Supplier<short[]> arraySupplier)
Lazy evaluation.
|
void |
remove()
Deprecated.
- UnsupportedOperationException
|
void |
skip(long n) |
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
Set<T> |
toSet() |
forEachIndexed, forEachRemaining, foreachRemaining, generate, generate, next, nextShort, stream, toArray, toList
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next, remove
public static final ShortIteratorEx EMPTY
public static ShortIteratorEx empty()
@SafeVarargs public static ShortIteratorEx of(short... a)
public static ShortIteratorEx of(short[] a, int fromIndex, int toIndex)
public static ShortIteratorEx of(ShortIterator iter)
public static ShortIteratorEx of(Supplier<? extends ShortIterator> iteratorSupplier)
iteratorSupplier
- public static ShortIteratorEx oF(Supplier<short[]> arraySupplier)
arraySupplier
- public static ShortIteratorEx from(Iterator<Short> iter)
public void skip(long n)
skip
in interface IteratorEx<Short>
public long count()
count
in interface IteratorEx<Short>
public void close()
close
in interface IteratorEx<Short>
@Deprecated public void remove() throws UnsupportedOperationException
remove
in interface Iterator<T>
UnsupportedOperationException
public Set<T> toSet()
public <C extends Collection<T>> C toCollection(Supplier<? extends C> supplier)
C
- supplier
- public ImmutableList<T> toImmutableList()
public ImmutableSet<T> toImmutableSet()
Copyright © 2020. All rights reserved.