Class LongChunkAppender

java.lang.Object
io.deephaven.chunk.util.LongChunkAppender
All Implemented Interfaces:
LongConsumer

public final class LongChunkAppender extends Object implements LongConsumer
LongConsumer that appends successive longs to a WritableLongChunk without mutating the destination's size.
  • Constructor Details

    • LongChunkAppender

      public LongChunkAppender(@NotNull @NotNull WritableLongChunk<? extends Any> destination, int offset)
      Construct a LongChunkAppender to append to the specified destination beginning at offset.
      Parameters:
      destination - The destination WritableLongChunk
      offset - The initial position to append to
    • LongChunkAppender

      public LongChunkAppender(@NotNull @NotNull WritableLongChunk<? extends Any> destination)
      Construct a LongChunkAppender for the specified destination beginning at 0.
      Parameters:
      destination - The destination WritableLongChunk
  • Method Details

    • accept

      public final void accept(long value)
      Specified by:
      accept in interface LongConsumer