Class UInt16ValueBuffer


public class UInt16ValueBuffer extends IntValueBuffer
  • Constructor Details

    • UInt16ValueBuffer

      public UInt16ValueBuffer(int capacity)
  • Method Details

    • set

      public long set(int index, long value)
      Specified by:
      set in class ValueBuffer
    • set

      public int set(int index, int value)
      Specified by:
      set in class ValueBuffer
    • set

      public short set(int index, short value)
      Specified by:
      set in class ValueBuffer
    • set

      public byte set(int index, byte value)
      Specified by:
      set in class ValueBuffer
    • getLong

      public long getLong(int index)
      Specified by:
      getLong in class ValueBuffer
    • getInt

      public int getInt(int index)
      Specified by:
      getInt in class ValueBuffer
    • getShort

      public short getShort(int index)
      Specified by:
      getShort in class ValueBuffer
    • getByte

      public byte getByte(int index)
      Specified by:
      getByte in class ValueBuffer
    • indexOf

      public int indexOf(long value, int startIndex, int endIndex)
      Specified by:
      indexOf in class IntValueBuffer
    • indexOf

      public int indexOf(int value, int startIndex, int endIndex)
      Specified by:
      indexOf in class IntValueBuffer
    • indexOf

      public int indexOf(short value, int startIndex, int endIndex)
      Specified by:
      indexOf in class IntValueBuffer
    • indexOf

      public int indexOf(byte value, int startIndex, int endIndex)
      Specified by:
      indexOf in class IntValueBuffer
    • indexOfBinarySearch

      public int indexOfBinarySearch(long value, int startIndex, int endIndex)
      Description copied from class: IntValueBuffer
      Expects the buffer to be sorted in unsigned ascending order.
      Specified by:
      indexOfBinarySearch in class IntValueBuffer
    • indexOfBinarySearch

      public int indexOfBinarySearch(int value, int startIndex, int endIndex)
      Description copied from class: IntValueBuffer
      Expects the buffer to be sorted in unsigned ascending order.
      Specified by:
      indexOfBinarySearch in class IntValueBuffer
    • indexOfBinarySearch

      public int indexOfBinarySearch(short value, int startIndex, int endIndex)
      Description copied from class: IntValueBuffer
      Expects the buffer to be sorted in unsigned ascending order.
      Specified by:
      indexOfBinarySearch in class IntValueBuffer
    • indexOfBinarySearch

      public int indexOfBinarySearch(byte value, int startIndex, int endIndex)
      Description copied from class: IntValueBuffer
      Expects the buffer to be sorted in unsigned ascending order.
      Specified by:
      indexOfBinarySearch in class IntValueBuffer
    • moveIntoSortedPlace

      public int moveIntoSortedPlace(int index)
      Description copied from class: IntValueBuffer
      Returns the final index that the value was moved to.
      Specified by:
      moveIntoSortedPlace in class IntValueBuffer
    • moveIntoPlace

      public void moveIntoPlace(int index, int targetIndex)
      Description copied from class: ValueBuffer
      Moves the value to targetIndex, and shifts all values in between.
      Specified by:
      moveIntoPlace in class ValueBuffer
    • writeContents

      public void writeContents(DataSink output, int startIndex, int endIndex) throws IOException
      Specified by:
      writeContents in class ValueBuffer
      Throws:
      IOException
    • readContents

      public void readContents(DataSource input, int startIndex, int endIndex) throws IOException
      Specified by:
      readContents in class ValueBuffer
      Throws:
      IOException