protected static class AbstractLinkedList.LinkedSubList
extends java.util.AbstractList
Modifier | Constructor and Description |
---|---|
protected |
LinkedSubList(AbstractLinkedList parent,
int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object obj) |
boolean |
addAll(java.util.Collection coll) |
boolean |
addAll(int index,
java.util.Collection coll) |
protected void |
checkModCount() |
void |
clear() |
java.lang.Object |
get(int index) |
java.util.Iterator |
iterator() |
java.util.ListIterator |
listIterator(int index) |
protected void |
rangeCheck(int index,
int beyond) |
java.lang.Object |
remove(int index) |
java.lang.Object |
set(int index,
java.lang.Object obj) |
int |
size() |
java.util.List |
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
protected LinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex)
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public void add(int index, java.lang.Object obj)
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 boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.AbstractCollection
public boolean addAll(int index, java.util.Collection coll)
addAll
in interface java.util.List
addAll
in class java.util.AbstractList
public java.lang.Object set(int index, java.lang.Object obj)
set
in interface java.util.List
set
in class java.util.AbstractList
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
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 fromIndexInclusive, int toIndexExclusive)
subList
in interface java.util.List
subList
in class java.util.AbstractList
protected void rangeCheck(int index, int beyond)
protected void checkModCount()
Copyright © 2001-2024 Apache Software Foundation. All Rights Reserved.