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, toString
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
public 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.AbstractList
public int size()
size
in class java.util.AbstractCollection
public java.lang.Object set(int index, java.lang.Object element)
set
in class java.util.AbstractList
public void add(int index, java.lang.Object element)
add
in class java.util.AbstractList
public java.lang.Object remove(int index)
remove
in class java.util.AbstractList