@Test public void toStringTest() { Object obj = null; String value = String.valueOf(obj); Assert.assertFalse(value == null); value = StringValues.toString(obj); Assert.assertTrue(value == null); }
public static String toString(Object value) { if (value == null) return null; return value.toString(); }
StringValues { public static String toString(Object value) { if (value == null) return null; return value.toString(); } }
StringValues { public static String toString(Object value) { if (value == null) return null; return value.toString(); } private  StringValues(); }
StringValues { public static String toString(Object value) { if (value == null) return null; return value.toString(); } private  StringValues(); static String toString(Object value); static String toLowerCase(String value); static String toUpperCase(String value); static boolean isNullOrWhitespace(String value); static String intern(String value); static String trim(String s, char... chars); static String trimEnd(String s, char... chars); static String trimStart(String s, char... chars); static String trim(String s, String trimmed); static String trimStart(String s, String trimmed); static String trimEnd(String s, String trimmed); static String concatPathParts(String... pathParts); static KeyValuePair<String, String> toKeyValuePair(String s); static KeyValuePair<String, String> toKeyValuePair(String s, String separator); static String join(T[] data, char separator); static String join(T[] data, String separator); static String join(Collection<?> data, char separator); static String join(Collection<?> data, String separator); static boolean equals(String s1, String s2); static boolean equalsIgnoreCase(String s1, String s2); }
StringValues { public static String toString(Object value) { if (value == null) return null; return value.toString(); } private  StringValues(); static String toString(Object value); static String toLowerCase(String value); static String toUpperCase(String value); static boolean isNullOrWhitespace(String value); static String intern(String value); static String trim(String s, char... chars); static String trimEnd(String s, char... chars); static String trimStart(String s, char... chars); static String trim(String s, String trimmed); static String trimStart(String s, String trimmed); static String trimEnd(String s, String trimmed); static String concatPathParts(String... pathParts); static KeyValuePair<String, String> toKeyValuePair(String s); static KeyValuePair<String, String> toKeyValuePair(String s, String separator); static String join(T[] data, char separator); static String join(T[] data, String separator); static String join(Collection<?> data, char separator); static String join(Collection<?> data, String separator); static boolean equals(String s1, String s2); static boolean equalsIgnoreCase(String s1, String s2); static final String EMPTY; static final String NULL; }