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 | |
add | Source Codeshared formal void add(Element element) |
addAll | Source Codeshared default void addAll({Element*} elements) |
clear | Source Codeshared default void clear() Remove every element from this list, leaving an empty list with no elements. |
clone | Source Codeshared formal ListMutator<Element> clone() A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned. |
delete | Source Codeshared formal Anything delete(Integer index) Remove the element at the specified |
deleteFirst | Source Codeshared default Anything deleteFirst() Remove the element with index |
deleteLast | Source Codeshared default Anything deleteLast() Remove the element with index |
deleteMeasure | Source Codeshared default void deleteMeasure(Integer from, Integer length) Remove every element with an index in the measured
range |
deleteSpan | Source Codeshared default void deleteSpan(Integer from, Integer to) Remove every element with an index in the spanned range
|
infill | Source Codeshared formal void infill(Element replacement) Replace all null values in this list with the given replacement value. Parameters:
|
insert | Source Codeshared formal void insert(Integer index, Element element) Throws
|
insertAll | Source Codeshared default void insertAll(Integer index, {Element*} elements) Insert the given Throws
|
move | Source Codeshared formal 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:
Throws
|
prune | Source Codeshared formal Integer prune() Remove all null elements from this list, leaving a list with no null elements, returning the number of elements removed. |
remove | Source Codeshared formal Integer remove(Element&Object element) Remove all occurrences of the given value from this list, returning the number of elements removed. To remove just one occurrence of the given value, use
Parameters:
|
removeAll | Source Codeshared default Integer removeAll({Element&Object*} elements) Remove all occurrences of every one of the given values from this list, returning the number of elements removed. Parameters:
|
removeFirst | Source Codeshared formal Boolean removeFirst(Element&Object element) Remove the first occurrence of the given
value from this list, if any, returning
Parameters:
|
removeLast | Source Codeshared formal Boolean removeLast(Element&Object element) Remove the last occurrence of the given
value from this list, if any, returning
Parameters:
|
replace | Source Codeshared formal Integer replace(Element&Object element, Element replacement) Replace all occurrences of the given value in this list with the given replacement value. To replace just one occurrence of the given value, use
Parameters:
|
replaceFirst | Source Codeshared formal Boolean replaceFirst(Element&Object element, Element replacement) Replace the first occurrence of the given
value in this list, if any, with the given
replacement value, returning Parameters:
|
replaceLast | Source Codeshared formal Boolean replaceLast(Element&Object element, Element replacement) Replace the last occurrence of the given
value in this list, if any, with the given
replacement value, returning Parameters:
|
set | Source Codeshared formal void set(Integer index, Element element) Throws
Refines IndexedCorrespondenceMutator.set |
swap | Source Codeshared formal 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:
Throws
|
truncate | Source Codeshared default void truncate(Integer size) Truncate this list to the given Parameters:
Throws
|