Interface ValueIteratorOfDouble
- All Superinterfaces:
AutoCloseable
,CloseableIterator<Double>
,CloseablePrimitiveIterator<Double,
,DoubleConsumer> CloseablePrimitiveIteratorOfDouble
,Iterator<Double>
,PrimitiveIterator<Double,
,DoubleConsumer> PrimitiveIterator.OfDouble
,ValueIterator<Double>
- All Known Subinterfaces:
DoubleColumnIterator
- All Known Implementing Classes:
ChunkedDoubleColumnIterator
,SerialDoubleColumnIterator
public interface ValueIteratorOfDouble
extends CloseablePrimitiveIteratorOfDouble, ValueIterator<Double>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueIteratorOfDouble
A re-usable, immutable ValueIteratorOfDouble with no elements. -
Method Summary
Modifier and TypeMethodDescriptiondefault DoubleStream
Create an unboxedDoubleStream
over the remaining elements of this ValueIteratorOfDouble.static ValueIteratorOfDouble
empty()
Get a ValueIteratorOfDouble with no elements.default void
forEachRemaining
(@NotNull Consumer<? super Double> action) default Double
next()
static ValueIteratorOfDouble
of
(@org.jetbrains.annotations.NotNull double... values) Create a ValueIteratorOfDouble over an array ofdouble
.stream()
Create a boxedStream
over the remaining elements of this ValueIteratorOfDouble.static ValueIteratorOfDouble
wrapWithNulls
(@Nullable ValueIteratorOfDouble iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfDouble with set number of prefix nulls, postfix nulls, or both.Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
close
Methods inherited from interface java.util.PrimitiveIterator.OfDouble
forEachRemaining, nextDouble
Methods inherited from interface io.deephaven.engine.primitive.value.iterator.ValueIterator
remaining
-
Field Details
-
EMPTY
A re-usable, immutable ValueIteratorOfDouble with no elements.
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<Double>
- Specified by:
next
in interfacePrimitiveIterator.OfDouble
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceIterator<Double>
- Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfDouble
-
doubleStream
Create an unboxedDoubleStream
over the remaining elements of this ValueIteratorOfDouble. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
doubleStream
in interfaceCloseablePrimitiveIteratorOfDouble
- Returns:
- An unboxed
DoubleStream
over the remaining contents of this iterator. Must beclosed
.
-
stream
Create a boxedStream
over the remaining elements of this ValueIteratorOfDouble. The result must beclosed
in order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
stream
in interfaceCloseableIterator<Double>
- Specified by:
stream
in interfaceValueIterator<Double>
- Returns:
- A boxed
Stream
over the remaining contents of this iterator. Must beclosed
.
-
empty
Get a ValueIteratorOfDouble with no elements. The result does not need to beclosed
.- Returns:
- A ValueIteratorOfDouble with no elements
-
of
Create a ValueIteratorOfDouble over an array ofdouble
. The result does not need to beclosed
.- Parameters:
values
- The elements to iterate- Returns:
- A ValueIteratorOfDouble of
values
-
wrapWithNulls
static ValueIteratorOfDouble wrapWithNulls(@Nullable @Nullable ValueIteratorOfDouble iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfDouble with set number of prefix nulls, postfix nulls, or both. The result must beclosed
.- Parameters:
iterator
- The ValueIteratorOfDouble to wrapprefixNulls
- The number of nulls to add to the beginning of the iteratorpostfixNulls
- The number of nulls to add to the end of the iterator- Returns:
- A ValueIteratorOfDouble with the specified number of prefix and postfix nulls
-