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 ValueIteratorOfDoubleA re-usable, immutable ValueIteratorOfDouble with no elements. -
Method Summary
Modifier and TypeMethodDescriptiondefault DoubleStreamCreate an unboxedDoubleStreamover the remaining elements of this ValueIteratorOfDouble.static ValueIteratorOfDoubleempty()Get a ValueIteratorOfDouble with no elements.default voidforEachRemaining(@NotNull Consumer<? super Double> action) default Doublenext()static ValueIteratorOfDoubleof(@org.jetbrains.annotations.NotNull double... values) Create a ValueIteratorOfDouble over an array ofdouble.stream()Create a boxedStreamover the remaining elements of this ValueIteratorOfDouble.static ValueIteratorOfDoublewrapWithNulls(@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
closeMethods inherited from interface java.util.PrimitiveIterator.OfDouble
forEachRemaining, nextDoubleMethods 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:
nextin interfaceIterator<Double>- Specified by:
nextin interfacePrimitiveIterator.OfDouble
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<Double>- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfDouble
-
doubleStream
Create an unboxedDoubleStreamover the remaining elements of this ValueIteratorOfDouble. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
doubleStreamin interfaceCloseablePrimitiveIteratorOfDouble- Returns:
- An unboxed
DoubleStreamover the remaining contents of this iterator. Must beclosed.
-
stream
Create a boxedStreamover the remaining elements of this ValueIteratorOfDouble. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamin interfaceCloseableIterator<Double>- Specified by:
streamin interfaceValueIterator<Double>- Returns:
- A boxed
Streamover 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
-