public interface BaseList<E> extends UnmodList<E>
UnmodList.
Lowest common ancestor of MutableList and ImList.UnmodList.AbstractUnmodList<E>| Modifier and Type | Method and Description |
|---|---|
BaseList<E> |
append(E e)
Adds one item to the end of the ImList.
|
BaseList<E> |
concat(Iterable<? extends E> es)
Efficiently adds items to the end of this ImList.
|
default E |
get(int i,
E notFound)
Returns the item at this index.
|
default Option<E> |
head()
The first item in this iterable.
|
BaseList<E> |
replace(int idx,
E e)
Replace the item at the given index.
|
BaseList<E> |
reverse()
Returns a reversed copy of this list.
|
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, permutations, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, sort, subList, toArray, toArrayparallelStream, streamcastFromList, castFromSortedMap, castFromSortedSet, equaldrop, dropWhile, filter, flatMap, fold, foldUntil, hash, map, precat, take, takeWhile, toStringtoImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableRrbt, toMutableSet, toMutableSortedMap, toMutableSortedSetBaseList<E> append(E e)
e - the value to insertBaseList<E> concat(Iterable<? extends E> es)
concat in interface Transformable<E>concat in interface UnmodIterable<E>es - the values to insertdefault E get(int i, E notFound)
i - the zero-based index to get from the vector.notFound - the value to return if the index is out of bounds.default Option<E> head()
head in interface Transformable<E>head in interface UnmodIterable<E>BaseList<E> replace(int idx, E e)
idx - the index where the value should be stored.e - the value to storeCopyright © 2019. All rights reserved.