Class Dumpable

    • Constructor Detail

      • Dumpable

        public Dumpable()
    • Method Detail

      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public final void toString​(java.lang.StringBuilder buf)
      • toStringMultiline

        public final java.lang.String toStringMultiline()
        Like 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.

      • toStringMultiline

        public final void toStringMultiline​(java.lang.StringBuilder buf,
                                            int currentIndent,
                                            boolean nl)
        Like 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.

        Parameters:
        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.
      • getTypeName

        protected java.lang.String getTypeName()
      • dumpFields

        protected abstract void dumpFields​(DumpWriter out)