Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Collection<Element>
Attributes inherited from: Correspondence<Key,Item>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: List<Element>
Methods
cloneSource Codeshared formal MutableList<Element> clone()

A new list with the same elements as this list.

Refines List.clone ultimately refines Collection.clone
deleteSource Codeshared formal Element? delete(Integer index)

Remove the element at the specified index, returning the removed element, if any, or null if there was no such element.

deleteFirstSource Codeshared actual default Element? deleteFirst()

Remove the element with index 0 from this list, returning the removed element, or null if there was no such element.

deleteLastSource Codeshared actual default Element? deleteLast()

Remove the element with index size-1 from this list, returning the removed element, or null if there was no such element.

moveSource Codeshared actual default void move(Integer i, Integer j)

Efficiently move the element of this list at the given source index to the given destination index, shifting every element falling between the two given indices by one position to accommodate the change of position. If the source index is larger than the destination index, elements are shifted toward the end of the list. If the source index is smaller than the destination index, elements are shifted toward the start of the list. If the given indices are identical, no change is made to the list.

Parameters:
  • i
    • index may not be negative or greater than the last index in the list

  • j
    • index may not be negative or greater than the last index in the list

swapSource Codeshared actual default void swap(Integer i, Integer j)

Given two indices within this list, swap the positions of the elements at these indices. If the two given indices are identical, no change is made to the list.

Parameters:
  • i
    • index may not be negative or greater than the last index in the list

  • j
    • index may not be negative or greater than the last index in the list

Inherited Methods
Methods inherited from: Object
Methods inherited from: Category<Element>
Methods inherited from: Collection<Element>
Methods inherited from: Correspondence<Key,Item>
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: List<Element>
Methods inherited from: ListMutator<Element>
Methods inherited from: Ranged<Index,Element,Subrange>