Class ImmutableCollections.AbstractImmutableList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.maven.api.plugin.descriptor.lifecycle.ImmutableCollections.AbstractImmutableList<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,List<E>,RandomAccess
- Direct Known Subclasses:
ImmutableCollections.AbstractImmutableList.SubList,ImmutableCollections.List1,ImmutableCollections.List2,ImmutableCollections.ListN
- Enclosing class:
ImmutableCollections
private abstract static class ImmutableCollections.AbstractImmutableList<E>
extends AbstractList<E>
implements RandomAccess, Serializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()iterator()listIterator(int index) protected IndexOutOfBoundsExceptionoutOfBounds(int index) booleanbooleanremoveAll(Collection<?> c) booleanvoidreplaceAll(UnaryOperator<E> operator) booleanretainAll(Collection<?> c) voidsort(Comparator<? super E> c) subList(int fromIndex, int toIndex) Methods inherited from class java.util.AbstractList
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, remove, removeRange, setMethods 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
-
AbstractImmutableList
private AbstractImmutableList()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>- Overrides:
addin classAbstractList<E>
-
remove
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classAbstractCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-
replaceAll
- Specified by:
replaceAllin interfaceList<E>
-
sort
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
subList
-
outOfBounds
-