Interface BytesModifiable

  • All Superinterfaces:
    Bytes
    All Known Implementing Classes:
    BytesArray

    public interface BytesModifiable
    extends Bytes
    Strings are encoded and decoded using the UTF-8 charset (multi-byte charsets just aren't worth the increased complication in indexing).
    Author:
    hogye
    • Method Detail

      • set

        void set​(int i,
                 byte v)
      • set

        void set​(int i,
                 byte[] vs)
      • set

        void set​(int i,
                 byte[] vs,
                 int from,
                 int to)
      • insert

        void insert​(int i,
                    byte v)
      • insert

        void insert​(int i,
                    byte[] vs)
      • insert

        void insert​(int i,
                    Bytes vs)
      • insert

        void insert​(int i,
                    String s)
      • insert

        void insert​(int i,
                    byte[] vs,
                    int from,
                    int to)
      • insert

        void insert​(int i,
                    Bytes vs,
                    int from,
                    int to)
      • insert

        void insert​(int i,
                    String s,
                    int from,
                    int to)
      • insert

        void insert​(int i,
                    ByteBuffer vs,
                    int c)
      • append

        void append​(byte v)
      • append

        void append​(byte[] vs)
      • append

        void append​(Bytes vs)
      • append

        void append​(String s)
      • append

        void append​(byte[] vs,
                    int from,
                    int to)
      • append

        void append​(Bytes vs,
                    int from,
                    int to)
      • append

        void append​(String s,
                    int from,
                    int to)
      • prepend

        void prepend​(byte v)
      • prepend

        void prepend​(byte[] vs)
      • prepend

        void prepend​(Bytes vs)
      • prepend

        void prepend​(String s)
      • prepend

        void prepend​(byte[] vs,
                     int from,
                     int to)
      • prepend

        void prepend​(Bytes vs,
                     int from,
                     int to)
      • prepend

        void prepend​(String s,
                     int from,
                     int to)
      • prepend

        void prepend​(ByteBuffer vs,
                     int c)
      • remove

        void remove​(byte v)
        Removes a single copy of the specified value. If multiple copies are present, there is no guarantee which one will be removed.
      • removeRange

        void removeRange​(int from,
                         int to)
        Removes values starting at index from (inclusive) to index to (exclusive). All other values with indices greater than or equal to index to have their index in the array decreased by to-from and the size of the array is decreased by to-from.
      • removeIndex

        void removeIndex​(int index)
        Remove value at index. All other values with indices greater than index have their index in the array decreased by one and the size of the array is decreased by one.
      • clear

        void clear()
      • ensureCapacity

        void ensureCapacity​(int minCapacity)
      • compact

        void compact()