| Modifier and Type | Field and Description |
|---|---|
static IntIterator |
EMPTY |
| Constructor and Description |
|---|
IntIterator() |
| Modifier and Type | Method and Description |
|---|---|
static IntIterator |
empty() |
<E extends Exception> |
foreachIndexed(Throwables.IndexedIntConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Integer> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.IntConsumer<E> action) |
static IntIterator |
generate(BooleanSupplier hasNext,
IntSupplier supplier) |
static IntIterator |
generate(IntSupplier supplier)
Returns an infinite
IntIterator. |
ObjIterator<IndexedInt> |
indexed() |
ObjIterator<IndexedInt> |
indexed(long startIndex) |
Integer |
next()
Deprecated.
|
abstract int |
nextInt() |
static IntIterator |
of(int... a) |
static IntIterator |
of(int[] a,
int fromIndex,
int toIndex) |
static IntIterator |
of(Supplier<? extends IntIterator> iteratorSupplier)
Lazy evaluation.
|
static IntIterator |
oF(Supplier<int[]> arraySupplier)
Lazy evaluation.
|
void |
remove()
Deprecated.
- UnsupportedOperationException
|
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
Set<T> |
toSet() |
public static final IntIterator EMPTY
public static IntIterator empty()
@SafeVarargs public static IntIterator of(int... a)
a - public static IntIterator of(int[] a, int fromIndex, int toIndex)
a - fromIndex - toIndex - public static IntIterator of(Supplier<? extends IntIterator> iteratorSupplier)
iteratorSupplier - public static IntIterator oF(Supplier<int[]> arraySupplier)
arraySupplier - public static IntIterator generate(IntSupplier supplier)
IntIterator.supplier - public static IntIterator generate(BooleanSupplier hasNext, IntSupplier supplier)
hasNext - supplier - @Deprecated public Integer next()
public abstract int nextInt()
@Beta public ObjIterator<IndexedInt> indexed()
@Beta public ObjIterator<IndexedInt> indexed(long startIndex)
@Deprecated public void forEachRemaining(Consumer<? super Integer> action)
action - public <E extends Exception> void foreachRemaining(Throwables.IntConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic <E extends Exception> void foreachIndexed(Throwables.IndexedIntConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exception@Deprecated public void remove() throws UnsupportedOperationException
remove in interface Iterator<T>UnsupportedOperationExceptionpublic 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 © 2021. All rights reserved.