| Modifier and Type | Field and Description |
|---|---|
static DoubleIterator |
EMPTY |
| Constructor and Description |
|---|
DoubleIterator() |
| Modifier and Type | Method and Description |
|---|---|
static DoubleIterator |
empty() |
<E extends Exception> |
foreachIndexed(Throwables.IndexedDoubleConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Double> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.DoubleConsumer<E> action) |
static DoubleIterator |
generate(BooleanSupplier hasNext,
DoubleSupplier supplier) |
static DoubleIterator |
generate(DoubleSupplier supplier)
Returns an infinite
DoubleIterator. |
ObjIterator<IndexedDouble> |
indexed() |
ObjIterator<IndexedDouble> |
indexed(long startIndex) |
Double |
next()
Deprecated.
|
abstract double |
nextDouble() |
static DoubleIterator |
of(double... a) |
static DoubleIterator |
of(double[] a,
int fromIndex,
int toIndex) |
static DoubleIterator |
of(Supplier<? extends DoubleIterator> iteratorSupplier)
Lazy evaluation.
|
static DoubleIterator |
oF(Supplier<double[]> 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 DoubleIterator EMPTY
public static DoubleIterator empty()
@SafeVarargs public static DoubleIterator of(double... a)
a - public static DoubleIterator of(double[] a, int fromIndex, int toIndex)
a - fromIndex - toIndex - public static DoubleIterator of(Supplier<? extends DoubleIterator> iteratorSupplier)
iteratorSupplier - public static DoubleIterator oF(Supplier<double[]> arraySupplier)
arraySupplier - public static DoubleIterator generate(DoubleSupplier supplier)
DoubleIterator.supplier - public static DoubleIterator generate(BooleanSupplier hasNext, DoubleSupplier supplier)
hasNext - supplier - @Deprecated public Double next()
public abstract double nextDouble()
@Beta public ObjIterator<IndexedDouble> indexed()
@Beta public ObjIterator<IndexedDouble> indexed(long startIndex)
@Deprecated public void forEachRemaining(Consumer<? super Double> action)
public <E extends Exception> void foreachRemaining(Throwables.DoubleConsumer<E> action) throws E extends Exception
E extends Exceptionpublic <E extends Exception> void foreachIndexed(Throwables.IndexedDoubleConsumer<E> action) throws E extends Exception
E 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.