Class CopyOnWriteArrayList.COWSubList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.COWSubList
- All Implemented Interfaces:
Iterable, Collection, List, SequencedCollection
- Enclosing class:
CopyOnWriteArrayList
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]protected final CopyOnWriteArrayListprotected final intprotected intFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCOWSubList(CopyOnWriteArrayList list, int fromIndex, int toIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidget(int index) iterator()listIterator(int index) protected voidrangeCheck(int index) remove(int index) intsize()subList(int fromIndex, int toIndex) Methods inherited from class AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
l
-
offset
protected final int offset -
size
protected int size -
expectedArray
-
-
Constructor Details
-
COWSubList
-
-
Method Details
-
checkForComodification
protected void checkForComodification() -
rangeCheck
protected void rangeCheck(int index) -
set
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
subList
- Specified by:
subListin interfaceList- Overrides:
subListin classAbstractList
-