Package com.intellij.util.containers
Class ImmutableList<E>
java.lang.Object
java.util.AbstractCollection<E>
com.intellij.util.containers.ImmutableList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>
A base class for immutable list implementations.
Copied from
AbstractList with modCount field removed, because the implementations are supposed to be immutable, so
it makes no sense to waste memory on modCount.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> c) booleaninthashCode()intiterator()intlistIterator(int index) remove(int index) subList(int fromIndex, int toIndex) Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, addFirst, addLast, clear, contains, containsAll, get, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
ImmutableList
public ImmutableList()
-
-
Method Details
-
iterator
-
addAll
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
equals
-
hashCode
public int hashCode()
-