Page 1 of 1

Why drainTo is not present in regular collection framework?

Posted: Tue Jul 16, 2013 8:30 am
by The_Nick
I was wondering why the method drainTo http://docs.oracle.com/javase/7/docs/ap ... ,%20int%29 of the BlockingQueue interface is not present in the Queue or any other interface belonging to the non-concurrent colletion framework.
Since one of the topic of concurrency for the exam is :
Use collections from the java.util.concurrent package with a focus on the advantages over and differences from the traditional java.util collections.
I am kindly asking why.


Thanks in advance.

The_Nick.

Re: Why drainTo is not present in regular collection framework?

Posted: Tue Jul 16, 2013 9:14 am
by admin
Not really sure why. Oracle can answer that better :)