public class Sublist
extends java.util.AbstractList
| Constructor | Description |
|---|---|
Sublist() |
|
Sublist(java.util.List parent,
int start_index,
int end_index) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int index,
java.lang.Object element) |
|
java.lang.Object |
get(int i) |
|
java.lang.Object |
remove(int index) |
|
java.lang.Object |
set(int index,
java.lang.Object element) |
|
void |
setParent(java.util.List parent,
int start_index,
int end_index) |
|
int |
size() |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringadd, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListpublic Sublist()
public Sublist(java.util.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(java.util.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 java.lang.Object get(int i)
get in class java.util.AbstractListpublic int size()
size in class java.util.AbstractCollectionpublic java.lang.Object set(int index,
java.lang.Object element)
set in class java.util.AbstractListpublic void add(int index,
java.lang.Object element)
add in class java.util.AbstractListpublic java.lang.Object remove(int index)
remove in class java.util.AbstractList