@Internal public abstract class IntIteratorEx extends IntIterator implements IteratorEx<Integer>
Modifier and Type | Field and Description |
---|---|
static IntIteratorEx |
EMPTY |
Constructor and Description |
---|
IntIteratorEx() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
count() |
static IntIteratorEx |
empty() |
static IntIteratorEx |
from(Iterator<Integer> iter) |
static IntIteratorEx |
of(int... a) |
static IntIteratorEx |
of(int[] a,
int fromIndex,
int toIndex) |
static IntIteratorEx |
of(IntIterator iter) |
static IntIteratorEx |
of(Supplier<? extends IntIterator> iteratorSupplier)
Lazy evaluation.
|
static IntIteratorEx |
oF(Supplier<int[]> 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, nextInt, stream, toArray, toList
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next, remove
public static final IntIteratorEx EMPTY
public static IntIteratorEx empty()
@SafeVarargs public static IntIteratorEx of(int... a)
public static IntIteratorEx of(int[] a, int fromIndex, int toIndex)
public static IntIteratorEx of(IntIterator iter)
public static IntIteratorEx of(Supplier<? extends IntIterator> iteratorSupplier)
iteratorSupplier
- public static IntIteratorEx oF(Supplier<int[]> arraySupplier)
arraySupplier
- public static IntIteratorEx from(Iterator<Integer> iter)
public void skip(long n)
skip
in interface IteratorEx<Integer>
public long count()
count
in interface IteratorEx<Integer>
public void close()
close
in interface IteratorEx<Integer>
@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.