protected static class CopyOnWriteArrayList.COWSubList
extends java.util.AbstractList
| Modifier and Type | Class and Description |
|---|---|
protected class |
CopyOnWriteArrayList.COWSubList.COWSubListIterator |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
expectedArray |
protected CopyOnWriteArrayList |
l |
protected int |
offset |
protected int |
size |
| Modifier | Constructor and Description |
|---|---|
protected |
COWSubList(CopyOnWriteArrayList list,
int fromIndex,
int toIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object element) |
protected void |
checkForComodification() |
java.lang.Object |
get(int index) |
java.util.Iterator |
iterator() |
java.util.ListIterator |
listIterator(int index) |
protected void |
rangeCheck(int index) |
java.lang.Object |
remove(int index) |
java.lang.Object |
set(int index,
java.lang.Object element) |
int |
size() |
java.util.List |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected final CopyOnWriteArrayList l
protected final int offset
protected int size
protected java.lang.Object[] expectedArray
protected COWSubList(CopyOnWriteArrayList list, int fromIndex, int toIndex)
protected void checkForComodification()
protected void rangeCheck(int index)
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in class java.util.AbstractListpublic java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractListpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class java.util.AbstractListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.AbstractListpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.AbstractListpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class java.util.AbstractListpublic java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListsubList in class java.util.AbstractList