@ManagedObject(value="Dumpable Object") public interface Dumpable
| Modifier and Type | Method and Description |
|---|---|
default String |
dump() |
void |
dump(Appendable out,
String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
static String |
dump(Dumpable dumpable)
Utility method to implement
dump() by calling dump(Appendable, String) |
static void |
dumpObject(Appendable out,
Object o)
Dump just an Object (but not it's contained items) to an Appendable.
|
static void |
dumpObjects(Appendable out,
String indent,
Object object,
Object... extraChildren)
Dump an Object, it's contained items and additional items to an
Appendable. |
static final String KEY
@ManagedOperation(value="Dump the nested Object state as a String", impact="INFO") default String dump()
void dump(Appendable out, String indent) throws IOException
out - The appendable to dump toindent - The indent to apply after any new lines.IOExceptionstatic String dump(Dumpable dumpable)
dump() by calling dump(Appendable, String)dumpable - The dumpable to dumpstatic void dumpObject(Appendable out, Object o) throws IOException
out - The Appendable to dump too - The object to dump.IOException - May be thrown by the Appendablestatic void dumpObjects(Appendable out, String indent, Object object, Object... extraChildren) throws IOException
Appendable.
If the object in an Iterable or an Array, then its contained items
are also dumped.out - the Appendable to dump toindent - The indent to apply after any new linesobject - The object to dump. If the object is an instance
of Container, Stream, Iterable, Array or Map,
then children of the object a recursively dumped.extraChildren - Items to be dumped as children of the object, in addition to any discovered children of objectIOException - May be thrown by the AppendableCopyright © 1995–2018 Webtide. All rights reserved.