public interface IndexedList<E> extends List<E>
IndexedList implementations guarantee fast random access to elements via List.get(int).| Modifier and Type | Method and Description |
|---|---|
IndexedList<E> |
append(E elem)
Returns a list with the specified element appended to the bottom of the list.
|
IndexedList<E> |
drop(int number)
Returns a list containing all elements in this list, excluding the first
number of elements. |
IndexedList<E> |
prepend(E elem)
Returns a list with the specified element prepended to the top of the list.
|
IndexedList<E> |
range(int from,
boolean fromInclusive,
int to,
boolean toInclusive)
Returns a list containing a contiguous range of elements from this list.
|
IndexedList<E> |
set(int i,
E elem)
Returns a list with the element set to the value specified at the index (zero-based).
|
IndexedList<E> |
take(int number)
Returns a list containing the first
number of elements from this list. |
asList, first, get, indexOf, last, lastIndexOf, tailforEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet@NotNull IndexedList<E> set(int i, E elem)
List@NotNull IndexedList<E> append(E elem)
List@NotNull IndexedList<E> prepend(E elem)
List@NotNull IndexedList<E> drop(int number)
Listnumber of elements.@NotNull IndexedList<E> take(int number)
Listnumber of elements from this list.@NotNull IndexedList<E> range(int from, boolean fromInclusive, int to, boolean toInclusive)
List