You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by Mingfai <mi...@gmail.com> on 2009/05/23 01:14:35 UTC

TaskQueue vs Java 5 Queue

hi,

Just wonder what's the benefit of having a TaskQueue class but not simply
use Queue<T extends Task> for the task queue?

If there is really sth unique in the Driods queue implementation, and the
Driods TaskQueue could implement Queue<T extends Task> and
TaskMaster.processAllTasks(TaskQueue<T> queue, Droid<T> droid)  could be
changed to

   - TaskMaster.processAllTasks( Queue<T extends Task>, Droid<T> droid), or
   - TaskMaster.processAllTasks( Collection<T extends Task>, Droid<T> droid)


What do you think?

regards,
mingfai