public class Sublist
extends java.util.AbstractList
Constructor and Description |
---|
Sublist() |
Sublist(java.util.List parent,
int start_index,
int end_index) |
Modifier and Type | Method and 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() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 interface java.util.List
get
in class java.util.AbstractList
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 set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.AbstractList
public void add(int index, java.lang.Object element)
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