public class Sublist extends AbstractList
modCount
Constructor and Description |
---|
Sublist() |
Sublist(List parent,
int start_index,
int end_index) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
Object |
get(int i) |
Object |
remove(int index) |
Object |
set(int index,
Object element) |
void |
setParent(List parent,
int start_index,
int end_index) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public Sublist()
public Sublist(List parent, int start_index, int end_index)
start_index
- index of the element of the parent list just before which the Sublist beginsend_index
- index of the first element of parent excluded from the Sublistpublic void setParent(List parent, int start_index, int end_index)
start_index
- index of the element of the parent list just before which the Sublist beginsend_index
- index of the first element of parent excluded from the Sublistpublic Object get(int i)
get
in interface List
get
in class AbstractList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public Object set(int index, Object element)
set
in interface List
set
in class AbstractList
public void add(int index, Object element)
add
in interface List
add
in class AbstractList
public Object remove(int index)
remove
in interface List
remove
in class AbstractList