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, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic 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 Listget in class AbstractListpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic Object set(int index, Object element)
set in interface Listset in class AbstractListpublic void add(int index,
Object element)
add in interface Listadd in class AbstractListpublic Object remove(int index)
remove in interface Listremove in class AbstractList