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
ConstructorDescriptionLongChunkAppender
(@NotNull WritableLongChunk<? extends Any> destination) Construct a LongChunkAppender for the specifieddestination
beginning at 0.LongChunkAppender
(@NotNull WritableLongChunk<? extends Any> destination, int offset) Construct a LongChunkAppender to append to the specifieddestination
beginning atoffset
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 specifieddestination
beginning atoffset
.- Parameters:
destination
- The destinationWritableLongChunk
offset
- The initial position to append to
-
LongChunkAppender
Construct a LongChunkAppender for the specifieddestination
beginning at 0.- Parameters:
destination
- The destinationWritableLongChunk
-
-
Method Details
-
accept
public final void accept(long value) - Specified by:
accept
in interfaceLongConsumer
-