Package com.landawn.abacus.util.stream
Class DoubleIteratorEx
- java.lang.Object
-
- com.landawn.abacus.util.DoubleIterator
-
- com.landawn.abacus.util.stream.DoubleIteratorEx
-
- All Implemented Interfaces:
IteratorEx<Double>
,Iterator<Double>
@Internal public abstract class DoubleIteratorEx extends DoubleIterator implements IteratorEx<Double>
-
-
Field Summary
Fields Modifier and Type Field Description static DoubleIteratorEx
EMPTY
-
Constructor Summary
Constructors Constructor Description DoubleIteratorEx()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
long
count()
static DoubleIteratorEx
empty()
static DoubleIteratorEx
from(Iterator<Double> iter)
static DoubleIteratorEx
of(double... a)
static DoubleIteratorEx
of(double[] a, int fromIndex, int toIndex)
static DoubleIteratorEx
of(DoubleIterator iter)
static DoubleIteratorEx
of(Supplier<? extends DoubleIterator> iteratorSupplier)
Lazy evaluation.static DoubleIteratorEx
oF(Supplier<double[]> arraySupplier)
Lazy evaluation.void
remove()
Deprecated.- UnsupportedOperationExceptionvoid
skip(long n)
<C extends Collection<T>>
CtoCollection(Supplier<? extends C> supplier)
ImmutableList<T>
toImmutableList()
ImmutableSet<T>
toImmutableSet()
Set<T>
toSet()
-
Methods inherited from class com.landawn.abacus.util.DoubleIterator
forEachIndexed, foreachRemaining, forEachRemaining, generate, generate, next, nextDouble, stream, toArray, toList
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Field Detail
-
EMPTY
public static final DoubleIteratorEx EMPTY
-
-
Method Detail
-
empty
public static DoubleIteratorEx empty()
-
of
@SafeVarargs public static DoubleIteratorEx of(double... a)
-
of
public static DoubleIteratorEx of(double[] a, int fromIndex, int toIndex)
-
of
public static DoubleIteratorEx of(DoubleIterator iter)
-
of
public static DoubleIteratorEx of(Supplier<? extends DoubleIterator> iteratorSupplier)
Lazy evaluation.- Parameters:
iteratorSupplier
-- Returns:
-
oF
public static DoubleIteratorEx oF(Supplier<double[]> arraySupplier)
Lazy evaluation.- Parameters:
arraySupplier
-- Returns:
-
from
public static DoubleIteratorEx from(Iterator<Double> iter)
-
skip
public void skip(long n)
- Specified by:
skip
in interfaceIteratorEx<Double>
-
count
public long count()
- Specified by:
count
in interfaceIteratorEx<Double>
-
close
public void close()
- Specified by:
close
in interfaceIteratorEx<Double>
-
remove
@Deprecated public void remove() throws UnsupportedOperationException
Deprecated.- UnsupportedOperationException- Specified by:
remove
in interfaceIterator<T>
- Throws:
UnsupportedOperationException
-
toSet
public Set<T> toSet()
- Returns:
-
toCollection
public <C extends Collection<T>> C toCollection(Supplier<? extends C> supplier)
- Type Parameters:
C
-- Parameters:
supplier
-- Returns:
-
toImmutableList
public ImmutableList<T> toImmutableList()
- Returns:
-
toImmutableSet
public ImmutableSet<T> toImmutableSet()
- Returns:
-
-