[concurrency-interest] Collection.contains(E)

Dhanji R. Prasanna dhanji at gmail.com
Tue Apr 17 02:42:05 EDT 2007


On 4/17/07, David Holmes <dcholmes at optusnet.com.au> wrote:
>
> The inference from which is that it was a mistake for NullPointerException
> and ClassCastException to be optionally allowed on such query methods.


Yea, and if it didnt support the optional method at all--it should be
throwing UnsupportedOperationException. Particularly in the case of
Collections implementations.

Dhanji.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20070417/06c8c30f/attachment.html 


More information about the Concurrency-interest mailing list