public abstract class FloatIterator extends Object
Modifier and Type | Field and Description |
---|---|
static FloatIterator |
EMPTY
The Constant EMPTY.
|
Constructor and Description |
---|
FloatIterator() |
Modifier and Type | Method and Description |
---|---|
static FloatIterator |
empty() |
<E extends Exception> |
forEachIndexed(Throwables.IndexedFloatConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Float> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.FloatConsumer<E> action) |
static FloatIterator |
generate(BooleanSupplier hasNext,
FloatSupplier supplier) |
static FloatIterator |
generate(FloatSupplier supplier)
Returns an infinite
FloatIterator . |
Float |
next()
Deprecated.
|
abstract float |
nextFloat() |
static FloatIterator |
of(float... a) |
static FloatIterator |
of(float[] a,
int fromIndex,
int toIndex) |
static FloatIterator |
of(Supplier<? extends FloatIterator> iteratorSupplier)
Lazy evaluation.
|
static FloatIterator |
oF(Supplier<float[]> arraySupplier)
Lazy evaluation.
|
void |
remove()
Deprecated.
- UnsupportedOperationException
|
FloatStream |
stream() |
float[] |
toArray() |
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
FloatList |
toList() |
Set<T> |
toSet() |
public static final FloatIterator EMPTY
public static FloatIterator empty()
@SafeVarargs public static FloatIterator of(float... a)
a
- public static FloatIterator of(float[] a, int fromIndex, int toIndex)
a
- fromIndex
- toIndex
- public static FloatIterator of(Supplier<? extends FloatIterator> iteratorSupplier)
iteratorSupplier
- public static FloatIterator oF(Supplier<float[]> arraySupplier)
arraySupplier
- public static FloatIterator generate(FloatSupplier supplier)
FloatIterator
.supplier
- public static FloatIterator generate(BooleanSupplier hasNext, FloatSupplier supplier)
hasNext
- supplier
- @Deprecated public Float next()
public abstract float nextFloat()
public float[] toArray()
public FloatList toList()
public FloatStream stream()
public <E extends Exception> void foreachRemaining(Throwables.FloatConsumer<E> action) throws E extends Exception
E
- action
- E
- the eE extends Exception
@Deprecated public void forEachRemaining(Consumer<? super Float> action)
action
- public <E extends Exception> void forEachIndexed(Throwables.IndexedFloatConsumer<E> action) throws E extends Exception
E
- action
- E
- the eE extends Exception
@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.