List of utility methods to do Array From
Object[] | toArray(Object... args) return an array of the params, useful for logging in slf4j return args;
|
Object[] | toArray(Object... values) Turns arbitrary objects into an array. return values;
|
String[] | toArray(String array) Cast a string to an array of objects String should have the format if (array.length() == 2) return new String[0]; return array.substring(1, array.length() - 1).split(","); |
String[] | toArray(String emails) Helper method to convert comma delimeted list of email strings to array if (emails == null) return new String[0]; String[] tmp = emails.split(","); for (int i = 0; i < tmp.length; i++) { tmp[i] = tmp[i].trim(); return tmp; |
int[] | toArray(String number) to Array int[] array = new int[number.length()]; for (int i = 0; i < number.length(); i++) { array[i] = Integer.parseInt(number.substring(i, i + 1)); return array; |
double[] | toArray(String s) to Array double[] ret = new double[s.length() * 8]; feedString(s, ret); return ret; |
String[] | toArray(String s) to Array return toArray(s, ","); |