j.u.Objects follow-up: deepEquals(Object, Object)? (original) (raw)
Joseph D. Darcy Joe.Darcy at Sun.COM
Mon Oct 12 17:40:24 UTC 2009
- Previous message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Next message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Joshua Bloch wrote:
I don't think method really pays for itself. If it belongs anywhere, it belongs in java.util.Arrays.
Josh
I think there is room in the platform for this functionality. Even if this is mostly used in tests, code used in tests is code too :-)
I think Objects is a better home for deepEquals(Object, Object) than Arrays since the arguments are not arrays and since it is a sibling method to equals(Object, Object).
-Joe
- Previous message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Next message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]