j.ul.Objects follow-up: methods for var-argification?
Joseph D. Darcy
Joe.Darcy at Sun.COM
Thu Oct 8 18:34:32 UTC 2009
Hello.
In the discussion about java.util.Objects, a few existing JDK methods
were mentioned for possible var-argification:
java.util.Arrays.hashCode(Object[] a)
java.util.Arrays.deepHashCode(Object[] a)
java.util.Arrays.toString(Object[] a)
Also of possible general interest are some methods on String (bug
6762452 API change proposal: Enhance String constructor for varargs)
java.lang.String.copyValueOf(char[] data)
java.lang.String.valueOf(char[] data)
java.lang.String(char[] value)
Var-argification is fully binary compatible and is generally source
compatible, although new conversions are allowed of course and
overloadings may change.
-Joe
More information about the core-libs-dev
mailing list