incubator-droids-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingfai <mingfai...@gmail.com>
Subject TaskQueue vs Java 5 Queue
Date Sat, 23 May 2009 01:14:35 GMT
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

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