Spliterator documentation on Priority(Blocking)Queue
paul.sandoz at oracle.com
Tue Aug 4 07:56:38 UTC 2015
Can you log an issue?
On 4 Aug 2015, at 06:47, Tagir Valeev <amaembo at gmail.com> wrote:
> The PriorityQueue class iterator() returns elements in no particular order.
> This is explicitly stated in JavaDoc for iterator() method  as well as
> in class description . However it's not mentioned mentioned that
> spliterator() method also traverses the queue in no particular order. Well,
> the user might guess that the order is not specified, because the
> spliterator does not have ORDERED characteristic, but it's not so obvious
> for any user. Probably it's would be good to add an explicit note like it's
> done for iterator. The same thing is for PriorityBlockingQueue. What do you
> With best regards,
> Tagir Valeev.
More information about the core-libs-dev