List

Members

Aliases

add
alias add = Collection!E.add
Undocumented in source.
remove
alias remove = Collection!E.remove
Undocumented in source.

Functions

add
void add(int index, E element)

Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

get
E get(int index)

Returns the element at the specified position in this list.

indexOf
int indexOf(E o)

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the lowest index <tt>i</tt> such that <tt>(o==null&nbsp;?&nbsp;get(i)==null&nbsp;:&nbsp;o.equals(get(i)))</tt>, or -1 if there is no such index.

lastIndexOf
int lastIndexOf(E o)

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the highest index <tt>i</tt> such that <tt>(o==null&nbsp;?&nbsp;get(i)==null&nbsp;:&nbsp;o.equals(get(i)))</tt>, or -1 if there is no such index.

opIndex
E opIndex(int index)
Undocumented in source.
removeAt
E removeAt(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). Returns the element that was removed from the list.

set
E set(int index, E element)

Replaces the element at the specified position in this list with the specified element (optional operation).

sort
void sort(Comparator!E c)

Sorts this list according to the order induced by the specified {@link Comparator}.

sort
void sort(bool isAscending)
Undocumented in source.

Meta