Class AbstractUnmodifiableSequentialList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.pcollections.AbstractUnmodifiableSequentialList<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>
- Direct Known Subclasses:
ConsPStack
A subclass of AbstractSequentialList that overrides the various mutator methods to mark them as
deprecated and unconditionally throw UnsupportedOperationException.
-
Field Summary
Fields inherited from class 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 AbstractSequentialList
get, iterator, listIteratorMethods inherited from class AbstractList
equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class AbstractCollection
contains, containsAll, isEmpty, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
contains, containsAll, isEmpty, size, spliterator, toArray, toArray
-
Constructor Details
-
AbstractUnmodifiableSequentialList
public AbstractUnmodifiableSequentialList()
-
-
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 classAbstractSequentialList<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 classAbstractSequentialList<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 classAbstractSequentialList<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 classAbstractSequentialList<E>- Throws:
UnsupportedOperationException- always
-
sort
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-