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]>
- Re: Question about CollectionUtils semantics Greg Zoller
- Re: Question about CollectionUtils semantics Peter Ko�ek
- Re: Question about CollectionUtils semantics Rodney Waldhoff
- Re: Question about CollectionUtils semantics Greg Zoller
- [collections] Question about CollectionUtils ... Peter Ko�ek
- Re: [collections] Question about Collecti... Greg Zoller
- Re: [collections] Question about Col... Todd Jonker
