Interface ListValue.Mutable<E>

    • Method Detail

      • add

        ListValue.Mutable<E> add​(int index,
                                 E value)
        Adds the specified element at the specified position in the list. As well, the element at the provided index is shifted to the right, increasing its and the elements thereafter their indices by one.
        Parameters:
        index - The index to add the provided element at
        value - The element to add
        Returns:
        This value, for chaining
      • add

        ListValue.Mutable<E> add​(int index,
                                 java.lang.Iterable<E> values)
        Adds the specified elements in the order that they are iterated to the list at the specified index. The element at the provided index and elements thereafter are shifted to the right, increasing their indices by one.
        Parameters:
        index - The index to add the elements at
        values - The elements to add
        Returns:
        This value, for chaining
      • remove

        ListValue.Mutable<E> remove​(int index)
        Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left, subtracts one from their indices.
        Parameters:
        index - The index of the element to remove
        Returns:
        This value, for chaining
      • set

        ListValue.Mutable<E> set​(int index,
                                 E element)
        Replaces the element at the specified index in this list with the specified element.
        Parameters:
        index - The index to replace the element with
        element - The element to set
        Returns:
        This value, for chaining