Class CombinedMemoryModel.AbstractByteBufferCombinerInPlace<E>

java.lang.Object
net.algart.arrays.CombinedMemoryModel.AbstractByteBufferCombiner<E>
net.algart.arrays.CombinedMemoryModel.AbstractByteBufferCombinerInPlace<E>
All Implemented Interfaces:
CombinedMemoryModel.Combiner<E>, CombinedMemoryModel.CombinerInPlace<E>
Enclosing class:
CombinedMemoryModel<E>

public abstract static class CombinedMemoryModel.AbstractByteBufferCombinerInPlace<E> extends CombinedMemoryModel.AbstractByteBufferCombiner<E> implements CombinedMemoryModel.CombinerInPlace<E>
  • Constructor Details

    • AbstractByteBufferCombinerInPlace

      protected AbstractByteBufferCombinerInPlace(Class<?> elementType, ByteBuffer workStorageForOneElement, MemoryModel memoryModel)
      Creates a new instance of this combiner.
      Parameters:
      elementType - the type of elements of the combined array.
      workStorageForOneElement - a little ByteBuffer enough to store one element of the combined array. May be direct ByteBuffer, but the heap one usually provides better performance.
      memoryModel - the memory model which will be used for creating combined arrays.
      Throws:
      NullPointerException - if one of the arguments is null.
      IllegalArgumentException - if the passed ByteBuffer is read-only.
  • Method Details