Enum SubArrayRequest.ArrayOperation

    • Enum Constant Detail

      • INSERT

        public static final SubArrayRequest.ArrayOperation INSERT
        Insert a value at a specific index into an existing array, shifting values at and after the given index.
      • ADD_UNIQUE

        public static final SubArrayRequest.ArrayOperation ADD_UNIQUE
        Add a value in an existing array unless the value already is present in the array. Existence of the value is tested via String comparison, and the array can only be containing primitive values.
    • Method Detail

      • values

        public static SubArrayRequest.ArrayOperation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubArrayRequest.ArrayOperation c : SubArrayRequest.ArrayOperation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubArrayRequest.ArrayOperation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • opCode

        public byte opCode()