Class ImmutableCollections.AbstractImmutableList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.maven.api.cli.extensions.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 class
private class
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
iterator()
listIterator
(int index) protected IndexOutOfBoundsException
outOfBounds
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
void
replaceAll
(UnaryOperator<E> operator) boolean
retainAll
(Collection<?> c) void
sort
(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, set
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
-
AbstractImmutableList
private AbstractImmutableList()
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceList<E>
- Overrides:
add
in classAbstractList<E>
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractCollection<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in classAbstractCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
-
removeIf
- Specified by:
removeIf
in interfaceCollection<E>
-
replaceAll
- Specified by:
replaceAll
in interfaceList<E>
-
sort
-
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-
subList
-
outOfBounds
-