public interface TaskQueueInterface
TaskInterface
,
Task
Modifier and Type | Method and Description |
---|---|
void |
addTask(TaskInterface task)
Add a task to the queue
|
int |
count()
Count the number of elements contained in the queue
return an int representing the number of element in the queue
|
TaskInterface |
getTask()
Get the most recent task from the queue
|
boolean |
isEmpty()
Specify if the queue contains no element
|
void |
removeTask(TaskInterface task)
Remove a task from the queue
|
void addTask(TaskInterface task)
task
- the object TaskInterface to add in the queueTaskInterface getTask()
void removeTask(TaskInterface task)
task
- the object task to remove from the queueboolean isEmpty()
int count()