Package net.hydromatic.morel.util
Class AbstractImmutableList<E>
java.lang.Object
net.hydromatic.morel.util.AbstractImmutableList<E>
- Type Parameters:
E- Element type
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
- Direct Known Subclasses:
ConsList
Base class for lists whose contents are constant after creation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) booleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) subList(int fromIndex, int toIndex) toList()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, get, getFirst, getLast, hashCode, indexOf, lastIndexOf, removeFirst, removeLast, replaceAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
AbstractImmutableList
AbstractImmutableList()
-
-
Method Details
-
toList
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
isEmpty
public boolean isEmpty() -
add
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
set
-
add
-
remove
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
remove
-