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, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.Listget in class java.util.AbstractListpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.lang.Object set(int index,
                            java.lang.Object element)
set in interface java.util.Listset in class java.util.AbstractListpublic void add(int index,
                java.lang.Object element)
add in interface java.util.Listadd in class java.util.AbstractListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.AbstractList