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 interface
CoModifiableList.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 boolean
add(T rangeMarker)
void
forEach(CoModifiableList.InnerIterator<T> innerIterator)
T
get(int index)
T
remove(int index)
int
size()
-
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:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
remove
public T remove(int index)
-
get
public T get(int index)
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
forEach
public void forEach(CoModifiableList.InnerIterator<T> innerIterator)
-
-