-
Method Summary
Returns a list with the specified element appended to the bottom of the list.
Returns a list containing all elements in this list, excluding the first number
of elements.
Returns a list with the specified element prepended to the top of the list.
range(int from,
boolean fromInclusive,
int to,
boolean toInclusive)
Returns a list containing a contiguous range of elements from this list.
Returns a list with the element set to the value specified at the index (zero-based).
Returns a list containing all elements in the list, excluding the first element.
Returns a list containing the first number
of elements from this list.
Methods inherited from interface com.github.andrewoma.dexx.collection.Iterable
iterator
Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
Method Details
-
set
Description copied from interface: List
Returns a list with the element set to the value specified at the index (zero-based).
- Specified by:
set
in interface List<E>
-
append
Description copied from interface: List
Returns a list with the specified element appended to the bottom of the list.
- Specified by:
append
in interface List<E>
-
prepend
Description copied from interface: List
Returns a list with the specified element prepended to the top of the list.
- Specified by:
prepend
in interface List<E>
-
drop
Description copied from interface: List
Returns a list containing all elements in this list, excluding the first number
of elements.
- Specified by:
drop
in interface List<E>
-
take
Description copied from interface: List
Returns a list containing the first number
of elements from this list.
- Specified by:
take
in interface List<E>
-
tail
Description copied from interface: List
Returns a list containing all elements in the list, excluding the first element. An empty list is
returned if the list is empty.
- Specified by:
tail
in interface List<E>
-
range
@NotNull
@NotNull LinkedList<E> range(int from,
boolean fromInclusive,
int to,
boolean toInclusive)
Description copied from interface: List
Returns a list containing a contiguous range of elements from this list.
- Specified by:
range
in interface List<E>
- Parameters:
from
- starting index for the range (zero-based)
fromInclusive
- if true, the element at the from
index will be included
to
- end index for the range (zero-based)
toInclusive
- if true, the element at the to
index will be included