Interface UnmodifiableByDefaultList<E>
- All Superinterfaces:
AccessorListMethods<E>, Collection<E>, Iterable<E>, List<E>, SequencedCollection<E>
- All Known Subinterfaces:
UnmodifiableByDefaultLiveList<E>
- All Known Implementing Classes:
DynamicallyMappedList, MappedList, MemoizationListImpl, MemoizationListImpl.MemoizedView, ValAsList
Trait to be mixed into implementations of unmodifiable lists.
Provides default implementations of mutating list methods.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault booleandefault booleanaddAll(int index, Collection<? extends E> c) default booleanaddAll(Collection<? extends E> c) default voidclear()default Eremove(int index) default booleandefault booleanremoveAll(Collection<?> c) default booleanretainAll(Collection<?> c) default EMethods inherited from interface AccessorListMethods
contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, equals, get, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, size, sort, spliterator
-
Method Details
-
set
-
add
-
remove
-
add
-
addAll
-
addAll
-
remove
-
removeAll
-
retainAll
-
clear
-