|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.module.ModuleList
To provide a list of modules in a type safe manor. This is basically a thin wrapper to list, specially targeted for modules. Created: Wed May 24 15:06:49 2000
Constructor Summary | |
ModuleList(List list)
|
Method Summary | |
boolean |
add(Module m)
Adds a module to the list. |
void |
clear()
Clear the list. |
boolean |
contains(Module m)
Returns whether a module is contained in this list. |
Module |
get(int i)
Returns the module at a given index. |
int |
indexOf(Module m)
Returns the index of a module. |
boolean |
isEmpty()
Returns whether the list is empty. |
Module |
remove(int i)
Removes a module at a specific index. |
boolean |
remove(Module m)
Removes a module from the list. |
int |
size()
Returns the number of modules. |
Module[] |
toArray()
Returns an array of modules. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModuleList(List list)
Method Detail |
public boolean add(Module m)
m
- the module
public void clear()
public boolean contains(Module m)
m
- the query module
public Module get(int i)
i
- the index
public int indexOf(Module m)
m
- the module
public boolean isEmpty()
public Module remove(int i)
i
- the index of the module
public boolean remove(Module m)
m
- the module to be removed
public int size()
public Module[] toArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |