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