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, removeRange
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected 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.List
set
in class java.util.AbstractList
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.AbstractList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.AbstractList
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
subList
in class java.util.AbstractList