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