@Test public void testPreservesTokens() { final String[] split = StringUtils.split("hello,,hi", ","); assertEquals("hello", split[0]); assertEquals("", split[1]); assertEquals("hi", split[2]); }
public static String[] split(final String value) { return split(value, " "); }
StringUtils { public static String[] split(final String value) { return split(value, " "); } }
StringUtils { public static String[] split(final String value) { return split(value, " "); } private  StringUtils(); }
StringUtils { public static String[] split(final String value) { return split(value, " "); } private  StringUtils(); static boolean isEmpty(final String s); static boolean isNotEmpty(final String s); static boolean areAnyBlank(final String... strings); static boolean isBlank(final String s); static boolean isNotBlank(final String s); static String[] commaSeparate(final String value); static String[] split(final String value); static String[] split(final String value, final String patternRegex); static boolean containsAlphaNumeric(final String s); static Set<String> createSet(final String wordList); static Set<String> createSet(final String wordList, boolean removeDiacritics); static String toTitleCase(String input, boolean eachWord); static String join(final String[] strings); static String join(final String[] strings, final char separator); static String join(final String[] strings, final int startFrom); static String join(final String[] strings, final int startFrom, final char separator); static int countMatches(String str, String sub); static String getNonNullString(final String value, final String defaultValue); static String cleanJSwordRestriction(String mainRange); static String trim(String input); }
StringUtils { public static String[] split(final String value) { return split(value, " "); } private  StringUtils(); static boolean isEmpty(final String s); static boolean isNotEmpty(final String s); static boolean areAnyBlank(final String... strings); static boolean isBlank(final String s); static boolean isNotBlank(final String s); static String[] commaSeparate(final String value); static String[] split(final String value); static String[] split(final String value, final String patternRegex); static boolean containsAlphaNumeric(final String s); static Set<String> createSet(final String wordList); static Set<String> createSet(final String wordList, boolean removeDiacritics); static String toTitleCase(String input, boolean eachWord); static String join(final String[] strings); static String join(final String[] strings, final char separator); static String join(final String[] strings, final int startFrom); static String join(final String[] strings, final int startFrom, final char separator); static int countMatches(String str, String sub); static String getNonNullString(final String value, final String defaultValue); static String cleanJSwordRestriction(String mainRange); static String trim(String input);  }