incubator-droids-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingfai <>
Subject TaskQueue vs Java 5 Queue
Date Sat, 23 May 2009 01:14:35 GMT

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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message