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

Reply via email to