All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.chunk.util.factories.LongChunkFactory Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY
// ****** Edit CharChunkFactory and run "./gradlew replicateSourcesAndChunks" to regenerate
//
// @formatter:off
package io.deephaven.chunk.util.factories;

import io.deephaven.chunk.*;
import io.deephaven.chunk.attributes.Any;

import org.jetbrains.annotations.NotNull;
import java.util.function.IntFunction;

public class LongChunkFactory implements ChunkFactory {
    @NotNull
    @Override
    public final long[] makeArray(int capacity) {
        return LongChunk.makeArray(capacity);
    }

    @NotNull
    @Override
    public final  LongChunk[] makeChunkArray(int capacity) {
        return LongChunkChunk.makeArray(capacity);
    }

    @NotNull
    @Override
    public final  LongChunk getEmptyChunk() {
        return LongChunk.getEmptyChunk();
    }

    @NotNull
    @Override
    public final  LongChunkChunk getEmptyChunkChunk() {
        return LongChunkChunk.getEmptyChunk();
    }

    @NotNull
    @Override
    public final  LongChunk chunkWrap(Object array) {
        final long[] typedArray = (long[]) array;
        return LongChunk.chunkWrap(typedArray);
    }

    @NotNull
    @Override
    public final  LongChunk chunkWrap(Object array, int offset, int capacity) {
        final long[] typedArray = (long[]) array;
        return LongChunk.chunkWrap(typedArray, offset, capacity);
    }

    @NotNull
    @Override
    public final  LongChunkChunk chunkChunkWrap(Chunk[] array) {
        LongChunk[] typedArray = (LongChunk[]) array;
        return LongChunkChunk.chunkWrap(typedArray);
    }

    @NotNull
    @Override
    public final  LongChunkChunk chunkChunkWrap(Chunk[] array, int offset, int capacity) {
        LongChunk[] typedArray = (LongChunk[]) array;
        return LongChunkChunk.chunkWrap(typedArray, offset, capacity);
    }


    @NotNull
    @Override
    public final  ResettableReadOnlyChunk makeResettableReadOnlyChunk() {
        return ResettableLongChunk.makeResettableChunk();
    }

    @NotNull
    @Override
    public final  ResettableChunkChunk makeResettableChunkChunk() {
        return ResettableLongChunkChunk.makeResettableChunk();
    }

    @NotNull
    @Override
    public final  WritableLongChunk makeWritableChunk(int capacity) {
        return WritableLongChunk.makeWritableChunk(capacity);
    }

    @NotNull
    @Override
    public final  WritableLongChunkChunk makeWritableChunkChunk(int capacity) {
        return WritableLongChunkChunk.makeWritableChunk(capacity);
    }

    @NotNull
    @Override
    public final  WritableLongChunk writableChunkWrap(Object array, int offset, int capacity) {
        final long[] realType = (long[]) array;
        return WritableLongChunk.writableChunkWrap(realType, offset, capacity);
    }

    @NotNull
    @Override
    public final  WritableChunkChunk writableChunkChunkWrap(WritableChunk[] array,
            int offset, int capacity) {
        WritableLongChunk[] actual = (WritableLongChunk[]) array;
        return WritableLongChunkChunk.writableChunkWrap(actual, offset, capacity);
    }

    @NotNull
    @Override
    public final  ResettableWritableChunk makeResettableWritableChunk() {
        return ResettableWritableLongChunk.makeResettableChunk();
    }

    @NotNull
    @Override
    public final  ResettableWritableChunkChunk makeResettableWritableChunkChunk() {
        return ResettableWritableLongChunkChunk.makeResettableChunk();
    }

    @NotNull
    @Override
    public final IntFunction chunkArrayBuilder() {
        return LongChunk[]::new;
    }


    @NotNull
    public final IntFunction writableChunkArrayBuilder() {
        return WritableLongChunk[]::new;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy