|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.lang.PrettyPrinter
public final class PrettyPrinter
toString(Object)| Method Summary | |
|---|---|
static java.lang.String |
toString(java.lang.Object o)
An improved version of String.valueOf(Object). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Nullable
public static java.lang.String toString(@Nullable
java.lang.Object o)
String.valueOf(Object).
Objects are converted to strings in a Java-like format:
'\n'3B 3S 3L 3F 3D"abc\n""abcdef"... (123 chars)CharSequence:StringBuilder "abc\n"char[4] 'abc\n'char[99] 'abcdef'...int[3] { 1, 2, 3 }short[199] { 1, 2, 3, 4, 5, 6, ... }Object[3][] { [self], null, Object[2] { "abc", [parent] } }Object.toString()CHAR_ARRAY_ELLIPSIS charsARRAY_ELLIPSIS elementsCHAR_SEQUENCE_ELLIPSIS charsTOTAL_LENGTH_ELLIPSIS characters, all remaining arrays and
CharSequences are abbreviated, so the result string will effectively not be much longer than TOTAL_LENGTH_ELLIPSIS characters.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||