java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.pcollections.AbstractUnmodifiableList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
- Direct Known Subclasses:
TreePVector
A subclass of AbstractList that overrides the various mutator methods to mark them as deprecated
and unconditionally throw UnsupportedOperationException.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Unsupported operation.booleanDeprecated.Unsupported operation.booleanaddAll(int index, Collection<? extends E> c) Deprecated.Unsupported operation.booleanaddAll(Collection<? extends E> c) Deprecated.Unsupported operation.voidclear()Deprecated.Unsupported operation.remove(int index) Deprecated.Unsupported operation.booleanDeprecated.Unsupported operation.booleanremoveAll(Collection<?> c) Deprecated.Unsupported operation.booleanDeprecated.Unsupported operation.voidreplaceAll(UnaryOperator<E> operator) Deprecated.Unsupported operation.booleanretainAll(Collection<?> list) Deprecated.Unsupported operation.Deprecated.Unsupported operation.voidsort(Comparator<? super E> c) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractList
equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
contains, containsAll, isEmpty, size, spliterator, toArray, toArray
-
Constructor Details
-
AbstractUnmodifiableList
public AbstractUnmodifiableList()
-
-
Method Details
-
add
Deprecated.Unsupported operation.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
add
Deprecated.Unsupported operation.- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
remove
Deprecated.Unsupported operation.- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
remove
Deprecated.Unsupported operation.- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
removeAll
Deprecated.Unsupported operation.- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
removeIf
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
replaceAll
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
retainAll
Deprecated.Unsupported operation.- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
set
Deprecated.Unsupported operation.- Specified by:
setin interfaceList<E>- Overrides:
setin classAbstractList<E>- Throws:
UnsupportedOperationException- always
-
sort
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-