What methods should go into a java.util.Objects class in JDK 7?
schulz at e-spirit.de
Thu Sep 10 00:37:39 PDT 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