Interface ArrayWritable<T>

    • Method Detail

      • writeToArray

        void writeToArray​(int offset,
                          @Nullable Object[] array,
                          int tgtOfs,
                          int num)
        Writes the contents of this container to an array. The behavior of calling this method should be equivalent to System.arraycopy(this.toArray(), offset, array, tgtOfs, num);
        Parameters:
        offset - how many elements of this container to skip.
        array - the array in which to store the elements.
        tgtOfs - the starting offset in the target array.
        num - the maximum number of elements to copy.
      • size

        int size()
        The size of this container.