|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.UnmodifiableCollection
org.norther.tammi.acorn.util.UnmodifiableList
org.norther.tammi.acorn.util.ModifiableList
public class ModifiableList
Extends UnmodifiableList by supporting modifications after cloning.
| Constructor Summary | |
|---|---|
ModifiableList(boolean modifiable)
Constructs an empty list. |
|
ModifiableList(Collection c,
boolean modifiable)
Constructs a new list. |
|
ModifiableList(List l,
boolean modifiable)
Constructs a new list. |
|
ModifiableList(Object[] a,
boolean modifiable)
Constructs a new list for an array. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object o)
|
boolean |
addAll(int index,
Collection c)
|
Object |
clone()
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
Object |
set(int index,
Object o)
|
protected void |
setCollection(Collection c)
Sets the collection adaptee. |
List |
subList(int fromIndex,
int toIndex)
|
| Methods inherited from class org.norther.tammi.acorn.util.UnmodifiableList |
|---|
get, getList, indexOf, lastIndexOf, setList |
| Methods inherited from class org.norther.tammi.acorn.util.UnmodifiableCollection |
|---|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
public ModifiableList(boolean modifiable)
modifiable - true to clone automatically during modifications, false
to allow modifications only after cloning.
public ModifiableList(List l,
boolean modifiable)
l - a list to wrap.modifiable - true to clone automatically during modifications, false
to allow modifications only after cloning.
public ModifiableList(Collection c,
boolean modifiable)
c - a collection to wrap.modifiable - true to clone automatically during modifications, false
to allow modifications only after cloning.
public ModifiableList(Object[] a,
boolean modifiable)
a - an array to wrap.modifiable - true to clone automatically during modifications, false
to allow modifications only after cloning.| Method Detail |
|---|
public Object clone()
clone in class UnmodifiableCollection
public void add(int index,
Object o)
add in interface Listadd in class UnmodifiableList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class UnmodifiableListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class UnmodifiableListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class UnmodifiableListpublic Object remove(int index)
remove in interface Listremove in class UnmodifiableList
public Object set(int index,
Object o)
set in interface Listset in class UnmodifiableList
public List subList(int fromIndex,
int toIndex)
subList in interface ListsubList in class UnmodifiableListprotected void setCollection(Collection c)
UnmodifiableCollection
setCollection in class UnmodifiableListc - the wrapped collection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||