Package io.deephaven.chunk.util
Class LongChunkAppender
java.lang.Object
io.deephaven.chunk.util.LongChunkAppender
- All Implemented Interfaces:
LongConsumer
LongConsumer that appends successive longs to a WritableLongChunk without mutating the destination's
size.-
Constructor Summary
ConstructorsConstructorDescriptionLongChunkAppender(@NotNull WritableLongChunk<? extends Any> destination) Construct a LongChunkAppender for the specifieddestinationbeginning at 0.LongChunkAppender(@NotNull WritableLongChunk<? extends Any> destination, int offset) Construct a LongChunkAppender to append to the specifieddestinationbeginning atoffset. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.LongConsumer
andThen
-
Constructor Details
-
LongChunkAppender
public LongChunkAppender(@NotNull @NotNull WritableLongChunk<? extends Any> destination, int offset) Construct a LongChunkAppender to append to the specifieddestinationbeginning atoffset.- Parameters:
destination- The destinationWritableLongChunkoffset- The initial position to append to
-
LongChunkAppender
Construct a LongChunkAppender for the specifieddestinationbeginning at 0.- Parameters:
destination- The destinationWritableLongChunk
-
-
Method Details
-
accept
public final void accept(long value) - Specified by:
acceptin interfaceLongConsumer
-