List of utility methods to do Array Join
String | join(int[] follows) join StringBuilder buf = new StringBuilder(11 * follows.length); for (int follow : follows) { if (0 != buf.length()) { buf.append(","); buf.append(follow); return buf.toString(); ... |
long[] | join(long[] a, long[] b) join long[] res = Arrays.copyOf(a, a.length + b.length); System.arraycopy(b, 0, res, a.length, b.length); return res; |
String | join(long[] array, String delim) join StringBuilder build = new StringBuilder(); for (long item : array) { build.append(delim); build.append(item); return build.substring(delim.length()); |
String | join(Object[] arguments) join return join(Arrays.asList(arguments));
|
String | join(Object[] arr) join return join(arr, ","); |
String | join(Object[] arr, String separator) Join array into string using separator For example: Utils.join(new String[]{"a", "b", "c"}, "+") => "a+b+c" return join(arr, "", separator, ""); |
String | join(Object[] arr, String separator) join StringBuffer buf = null; for (int i = 0; i < arr.length; i++) { if (buf == null) buf = new StringBuffer(arr[i].toString()); else buf.append(separator).append(arr[i].toString()); return (buf == null) ? null : buf.toString(); ... |
String | join(Object[] array) Joins the elements of the provided array into a single String containing the provided list of elements. No separator is added to the joined String. return join(array, null);
|
String | join(Object[] array) join return join(array, ", "); |
String | join(Object[] array) Joins the elements of the provided array into a single String containing the provided list of elements. return join(array, null);
|