What methods should go into a java.util.Objects class in JDK 7?
schulz at e-spirit.de
Thu Sep 10 07:37:39 UTC 2009
> So I'm left with only equal() for your new Objects class. By the way,
> the best implementation is a == b || (a != null && a.equals(b)).
I disagree, as this one does not handle arrays properly.
I'd either like equal to handle deep equality on arrays or have a deepEqual utility method that takes arbitrary objects.
More information about the core-libs-dev