protected static class AbstractLinkedList.LinkedSubList<E> extends AbstractList<E>
modCount
Modifier | Constructor and Description |
---|---|
protected |
LinkedSubList(AbstractLinkedList<E> parent,
int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E obj) |
boolean |
addAll(Collection<? extends E> coll) |
boolean |
addAll(int index,
Collection<? extends E> coll) |
protected void |
checkModCount() |
void |
clear() |
E |
get(int index) |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator(int index) |
protected void |
rangeCheck(int index,
int beyond) |
E |
remove(int index) |
E |
set(int index,
E obj) |
int |
size() |
List<E> |
subList(int fromIndexInclusive,
int toIndexExclusive) |
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected LinkedSubList(AbstractLinkedList<E> parent, int fromIndex, int toIndex)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public boolean addAll(Collection<? extends E> coll)
addAll
in interface Collection<E>
addAll
in interface List<E>
addAll
in class AbstractCollection<E>
public boolean addAll(int index, Collection<? extends E> coll)
public void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class AbstractList<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
protected void rangeCheck(int index, int beyond)
protected void checkModCount()
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.