|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.geworkbench.bison.datastructure.complex.panels.CSItemList<T>
org.geworkbench.bison.datastructure.complex.panels.CSSequentialItemList<T>
public class CSSequentialItemList<T extends DSSequential>
An item list that maintains a list of items in which each item is aware of its own position in the list.
| Field Summary |
|---|
| Fields inherited from class org.geworkbench.bison.datastructure.complex.panels.CSItemList |
|---|
objectMap |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CSSequentialItemList()
Create a new CSSequentialItemList. |
|
| Method Summary | |
|---|---|
void |
add(int index,
T item)
Adds the item to the sequential item list. |
boolean |
add(T item)
Adds the item to the sequential item list. |
boolean |
remove(java.lang.Object item)
Removes the given item from the item list. |
| Methods inherited from class org.geworkbench.bison.datastructure.complex.panels.CSItemList |
|---|
addAll, clear, equals, get, get, getID, hashCode, rename, setID |
| Methods inherited from class java.util.ArrayList |
|---|
addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Constructor Detail |
|---|
public CSSequentialItemList()
| Method Detail |
|---|
public boolean add(T item)
add in interface java.util.Collection<T extends DSSequential>add in interface java.util.List<T extends DSSequential>add in class CSItemList<T extends DSSequential>item - the item to add.
true always.
public void add(int index,
T item)
add in interface java.util.List<T extends DSSequential>add in class CSItemList<T extends DSSequential>index - the index at which to insert the item, 0 <= index <= size();item - the item to insert.public boolean remove(java.lang.Object item)
remove in interface java.util.Collection<T extends DSSequential>remove in interface java.util.List<T extends DSSequential>remove in class CSItemList<T extends DSSequential>item - the item to remove.
true if the item was found and removed, false if the item was not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||