List of utility methods to do String from
int | fromString(final String string) from String return Integer.parseInt(string);
|
long | fromString(String s) from String if (s == null) { return 0; String[] parts = s.split("\\."); return Long.parseLong(parts[0]); |
String[] | fromString(String string) from String String[] array = string.split(","); return array; |
Object | fromString(String value) Returns the given String value. return "null".equals(value) ? null : value; |
String[] | fromStringStrings(String s, String separator) from String Strings if (s.equals("")) { return null; return s.split(separator); |