public abstract class Dumpable extends Object
| Constructor and Description |
|---|
Dumpable() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
dumpFields(DumpWriter out) |
protected String |
getTypeName() |
String |
toString() |
void |
toString(StringBuilder buf) |
String |
toStringMultiline()
Like
toString() except returns a multi-line string. |
void |
toStringMultiline(StringBuilder buf,
int currentIndent,
boolean nl)
Like
toStringMultiline(), but appends the result to buf
instead of returning a string. |
public final void toString(StringBuilder buf)
public final String toStringMultiline()
toString() except returns a multi-line string. Every line will
always end in a "\n".
Don't depend on the format of the output to stay the same. Newer versions of the SDK may change the format.
public final void toStringMultiline(StringBuilder buf, int currentIndent, boolean nl)
toStringMultiline(), but appends the result to buf
instead of returning a string.
Don't depend on the format of the output to stay the same. Newer versions of the SDK may change the format.
currentIndent - The number of spaces to use as the initial indentation level.nl - Whether you will start displaying this value on its own line (and will need indentation
on the first line) or not.protected String getTypeName()
protected abstract void dumpFields(DumpWriter out)
Copyright © 2014. All rights reserved.