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 TypeMethodDescriptionvoid
Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
addAll
(int index, Collection<? extends E> c) Deprecated.Unsupported operation.boolean
addAll
(Collection<? extends E> c) Deprecated.Unsupported operation.void
clear()
Deprecated.Unsupported operation.remove
(int index) Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
removeAll
(Collection<?> c) Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.void
replaceAll
(UnaryOperator<E> operator) Deprecated.Unsupported operation.boolean
retainAll
(Collection<?> list) Deprecated.Unsupported operation.Deprecated.Unsupported operation.void
sort
(Comparator<? super E> c) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractList
equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
add
Deprecated.Unsupported operation.- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
remove
Deprecated.Unsupported operation.- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
remove
Deprecated.Unsupported operation.- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
removeAll
Deprecated.Unsupported operation.- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in 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:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
set
Deprecated.Unsupported operation.- Specified by:
set
in interfaceList<E>
- Overrides:
set
in classAbstractList<E>
- Throws:
UnsupportedOperationException
- always
-
sort
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-