Hello...

I have a question about some CollectionUtils methods that operate semantically diferently
from the java.util.Collection methods they are augmenting.

The java.util.Collection methods use equals() when doing set operations (retainAll(), etc.).
Because it appears to be implemented largely using HashMap gets for cardinality counting,
CollectionUtils methods such as intersection() behave according to object comparision
using == not equals().

I have no idea if this is a "bug", but is certainly unexpected behavior and different from
the core java libs. Or perhaps, was this difference intentional, since you can always build
up the equals()-type behavior from the java.util libs, but not so easily the == behavior?

Regards,
Greg


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to