@Test public void testToString_NullArgument() { Assert.assertNull(CharSequences.toString(null)); }
public static String toString(CharSequence charSequence) { if (charSequence == null) { return null; } if (charSequence instanceof String) { return (String)charSequence; } return new StringBuilder(charSequence.length()).append(charSequence).toString(); }
CharSequences { public static String toString(CharSequence charSequence) { if (charSequence == null) { return null; } if (charSequence instanceof String) { return (String)charSequence; } return new StringBuilder(charSequence.length()).append(charSequence).toString(); } }
CharSequences { public static String toString(CharSequence charSequence) { if (charSequence == null) { return null; } if (charSequence instanceof String) { return (String)charSequence; } return new StringBuilder(charSequence.length()).append(charSequence).toString(); } CharSequences(); }
CharSequences { public static String toString(CharSequence charSequence) { if (charSequence == null) { return null; } if (charSequence instanceof String) { return (String)charSequence; } return new StringBuilder(charSequence.length()).append(charSequence).toString(); } CharSequences(); static Iterable<CharSequence> generateSuffixes(final CharSequence input); static Iterable<CharSequence> generatePrefixes(final CharSequence input); static CharSequence getCommonPrefix(CharSequence first, CharSequence second); static CharSequence getSuffix(CharSequence input, int startIndex); static CharSequence getPrefix(CharSequence input, int endIndex); static CharSequence subtractPrefix(CharSequence main, CharSequence prefix); static CharSequence concatenate(final CharSequence first, final CharSequence second); static CharSequence reverse(CharSequence input); static CharSequence fromCharArray(final char[] characters); static char[] toCharArray(CharSequence charSequence); static String toString(CharSequence charSequence); }
CharSequences { public static String toString(CharSequence charSequence) { if (charSequence == null) { return null; } if (charSequence instanceof String) { return (String)charSequence; } return new StringBuilder(charSequence.length()).append(charSequence).toString(); } CharSequences(); static Iterable<CharSequence> generateSuffixes(final CharSequence input); static Iterable<CharSequence> generatePrefixes(final CharSequence input); static CharSequence getCommonPrefix(CharSequence first, CharSequence second); static CharSequence getSuffix(CharSequence input, int startIndex); static CharSequence getPrefix(CharSequence input, int endIndex); static CharSequence subtractPrefix(CharSequence main, CharSequence prefix); static CharSequence concatenate(final CharSequence first, final CharSequence second); static CharSequence reverse(CharSequence input); static CharSequence fromCharArray(final char[] characters); static char[] toCharArray(CharSequence charSequence); static String toString(CharSequence charSequence);  }