public interface ImList<E> extends UnmodList<E>
UnmodList.AbstractUnmodList<E>UnmodIterable.AbstractUnmodIterable<T>| Modifier and Type | Method and Description |
|---|---|
ImList<E> |
append(E e)
Adds one item to the end of the ImList.
|
default ImList<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.
|
ImList<E> |
immutable()
Returns a immutable version of this mutable list.
|
MutableList<E> |
mutable()
Returns a mutable list (builder)
|
ImList<E> |
replace(int idx,
E e)
Replace the item at the given index.
|
default ImList<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, equal, equalsdrop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toStringtoImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSetImList<E> append(E e)
e - the value to insertdefault ImList<E> concat(Iterable<? extends E> es)
concat in interface Transformable<E>concat in interface UnmodIterable<E>es - the values to insertMutableList<E> mutable()
default 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.ImList<E> replace(int idx, E e)
idx - the index where the value should be stored.e - the value to storeCopyright © 2017. All rights reserved.