|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.util.ConstList
at.dms.util.MutableList
public class MutableList
Intended to be used in conjunction with ConstList, if one user wants a constant view of a list while another wants to be able to mutate it.
| Field Summary |
|---|
| Fields inherited from class at.dms.util.ConstList |
|---|
list |
| Constructor Summary | |
|---|---|
MutableList()
|
|
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
Inserts the specified element at the specified position in this list (optional operation). |
boolean |
add(Object o)
Appends the specified element to the end of this list (optional operation). |
boolean |
addAll(Collection c)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
boolean |
addAll(int index,
Collection c)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
void |
clear()
Removes all of the elements from this list (optional operation). |
Object |
clone()
|
Object |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
boolean |
remove(Object o)
Removes the first occurrence in this list of the specified element (optional operation). |
boolean |
removeAll(Collection c)
Removes from this list all the elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(Collection c)
Retains only the elements in this list that are contained in the specified collection (optional operation). |
List<Object> |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
| Methods inherited from class at.dms.util.ConstList |
|---|
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, set, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, set, size, toArray, toArray |
| Constructor Detail |
|---|
public MutableList()
| Method Detail |
|---|
public void add(int index,
Object element)
add in interface Listpublic boolean add(Object o)
add in interface Collectionadd in interface Listpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface List
public boolean addAll(int index,
Collection c)
addAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic Object remove(int index)
remove in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface List
public List<Object> subList(int fromIndex,
int toIndex)
subList in interface Listpublic Object clone()
clone in class ConstList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||