Package com.intellij.util.containers
Class CoModifiableList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.intellij.util.containers.CoModifiableList<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
public class CoModifiableList<T> extends AbstractList<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoModifiableList.InnerIterator<T>
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CoModifiableList(List<T> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T rangeMarker)voidforEach(CoModifiableList.InnerIterator<T> innerIterator)Tget(int index)Tremove(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, removeIf, stream
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(T rangeMarker)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
remove
public T remove(int index)
-
get
public T get(int index)
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
forEach
public void forEach(CoModifiableList.InnerIterator<T> innerIterator)
-
-