|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kirkwarez.wdysdv.batch.Batch
The Batch
class represents a batch of tasks, which you can process.
Field Summary | |
protected ArrayList |
batch
The list of batch items. |
Constructor Summary | |
Batch()
Constructs a new, empty, batch. |
|
Batch(Task task)
Constructs a new batch with an initial task. |
Method Summary | |
void |
addTask(Task task)
Adds a task to the list. |
Iterator |
getIterator()
Returns an iterator over the tasks. |
int |
getNumberOfTasks()
Returns the length of this batch. |
Task |
getTask(int index)
Returns the task at the index position in the batch. |
void |
removeAllTasks()
Removes all the task in the batch. |
Task |
removeTask(int index)
Removes and returns the task at the index position in the batch. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ArrayList batch
Constructor Detail |
public Batch()
public Batch(Task task)
Method Detail |
public Task getTask(int index)
index
- The position of the task in the batch.
public void addTask(Task task)
task
- The task to be added.public Task removeTask(int index)
index
- The position of the task in the batch.
public void removeAllTasks()
public int getNumberOfTasks()
public Iterator getIterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |