Interface ValueIteratorOfChar
- All Superinterfaces:
AutoCloseable,CloseableIterator<Character>,CloseablePrimitiveIterator<Character,,CharConsumer> CloseablePrimitiveIteratorOfChar,Iterator<Character>,PrimitiveIterator<Character,,CharConsumer> ValueIterator<Character>
- All Known Subinterfaces:
CharacterColumnIterator
- All Known Implementing Classes:
ChunkedCharacterColumnIterator,SerialCharacterColumnIterator
public interface ValueIteratorOfChar
extends CloseablePrimitiveIteratorOfChar, ValueIterator<Character>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueIteratorOfCharA re-usable, immutable ValueIteratorOfChar with no elements. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueIteratorOfCharempty()Get a ValueIteratorOfChar with no elements.default voidforEachRemaining(@NotNull Consumer<? super Character> action) default Characternext()static ValueIteratorOfCharof(@org.jetbrains.annotations.NotNull char... values) Create a ValueIteratorOfChar over an array ofchar.default IntStreamdefault IntStreamstreamAsInt(@NotNull CharToIntFunction adapter) Create anIntStreamover the remaining elements of this ValueIteratorOfChar by applyingadapterto each element.static ValueIteratorOfCharwrapWithNulls(@Nullable ValueIteratorOfChar iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfChar with set number of prefix nulls, postfix nulls, or both.Methods inherited from interface io.deephaven.engine.primitive.iterator.CloseableIterator
closeMethods inherited from interface io.deephaven.engine.primitive.iterator.CloseablePrimitiveIteratorOfChar
adaptToOfInt, forEachRemaining, nextCharMethods inherited from interface io.deephaven.engine.primitive.value.iterator.ValueIterator
remaining, stream
-
Field Details
-
EMPTY
A re-usable, immutable ValueIteratorOfChar with no elements.
-
-
Method Details
-
next
- Specified by:
nextin interfaceCloseablePrimitiveIteratorOfChar- Specified by:
nextin interfaceIterator<Character>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceCloseablePrimitiveIteratorOfChar- Specified by:
forEachRemainingin interfaceIterator<Character>
-
streamAsInt
Create an unboxedIntStreamover the remaining elements of this ValueIteratorOfChar by casting each element tointwith the appropriate adjustment ofNULL_CHARtoNULL_INT. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsIntin interfaceCloseablePrimitiveIteratorOfChar- Returns:
- An unboxed
IntStreamover the remaining contents of this iterator. Must beclosed.
-
streamAsInt
Create anIntStreamover the remaining elements of this ValueIteratorOfChar by applyingadapterto each element. The result must beclosedin order to ensure resources are released. A try-with-resources block is strongly encouraged.- Specified by:
streamAsIntin interfaceCloseablePrimitiveIteratorOfChar- Returns:
- An
IntStreamover the remaining contents of this iterator. Must beclosed.
-
empty
Get a ValueIteratorOfChar with no elements. The result does not need to beclosed.- Returns:
- A ValueIteratorOfChar with no elements
-
of
Create a ValueIteratorOfChar over an array ofchar. The result does not need to beclosed.- Parameters:
values- The elements to iterate- Returns:
- A ValueIteratorOfChar of
values
-
wrapWithNulls
static ValueIteratorOfChar wrapWithNulls(@Nullable @Nullable ValueIteratorOfChar iterator, long prefixNulls, long postfixNulls) Wraps a ValueIteratorOfChar with set number of prefix nulls, postfix nulls, or both. The result must beclosed.- Parameters:
iterator- The ValueIteratorOfChar 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 ValueIteratorOfChar with the specified number of prefix and postfix nulls
-