Package com.qfs.chunk

Interface IArrayWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void addDouble​(int position, double addedValue)
      Adds a double primitive value to an element of the array.
      default void addFloat​(int position, float addedValue)
      Adds a float primitive value to an element of the array.
      default void addInt​(int position, int addedValue)
      Adds a long primitive value to an element of the array.
      default void addLong​(int position, long addedValue)
      Adds a int primitive value to an element of the array.
      void write​(int position, Object value)
      Writes a piece of data at a position in the array.
      default void writeBoolean​(int position, boolean value)
      Writes a boolean primitive value in the array.
      default void writeDouble​(int position, double value)
      Writes a double primitive value in the array.
      default void writeFloat​(int position, float value)
      Writes a float primitive value in the array.
      default void writeInt​(int position, int value)
      Writes an int primitive value in the array.
      default void writeLong​(int position, long value)
      Writes a long primitive value in the array.
    • Method Detail

      • write

        void write​(int position,
                   Object value)
        Writes a piece of data at a position in the array.

        For better performance, use the primitive type operations.

        Parameters:
        position - 0-based index in the array
        value - the value to write
      • writeBoolean

        default void writeBoolean​(int position,
                                  boolean value)
        Writes a boolean primitive value in the array.
        Parameters:
        position - 0-based index in the array
        value - the value to write
      • writeInt

        default void writeInt​(int position,
                              int value)
        Writes an int primitive value in the array.
        Parameters:
        position - 0-based index in the array
        value - the value to write
      • writeLong

        default void writeLong​(int position,
                               long value)
        Writes a long primitive value in the array.
        Parameters:
        position - 0-based index in the array
        value - the value to write
      • writeDouble

        default void writeDouble​(int position,
                                 double value)
        Writes a double primitive value in the array.
        Parameters:
        position - 0-based index in the array
        value - the value to write
      • writeFloat

        default void writeFloat​(int position,
                                float value)
        Writes a float primitive value in the array.
        Parameters:
        position - 0-based index in the array
        value - the value to write
      • addLong

        default void addLong​(int position,
                             long addedValue)
        Adds a int primitive value to an element of the array.
        Parameters:
        position - 0-based index in the array
        addedValue - the value to add
      • addInt

        default void addInt​(int position,
                            int addedValue)
        Adds a long primitive value to an element of the array.
        Parameters:
        position - 0-based index in the array
        addedValue - the value to add
      • addDouble

        default void addDouble​(int position,
                               double addedValue)
        Adds a double primitive value to an element of the array.
        Parameters:
        position - 0-based index in the array
        addedValue - the value to add
      • addFloat

        default void addFloat​(int position,
                              float addedValue)
        Adds a float primitive value to an element of the array.
        Parameters:
        position - 0-based index in the array
        addedValue - the value to add