Package org.refcodes.runtime
Interface DumpBuilder
-
- All Superinterfaces:
org.refcodes.mixin.ObjectAccessor
,org.refcodes.mixin.ObjectAccessor.ObjectBuilder<DumpBuilder>
,org.refcodes.mixin.ObjectAccessor.ObjectMutator
,org.refcodes.mixin.ObjectAccessor.ObjectProperty
- All Known Implementing Classes:
DumpBuilderImpl
public interface DumpBuilder extends org.refcodes.mixin.ObjectAccessor.ObjectProperty, org.refcodes.mixin.ObjectAccessor.ObjectBuilder<DumpBuilder>
TheDumpBuilder
assists you in inspecting the content of an object. Creates aMap
containing the dump of an object's the member variable's values, the names being the keys and the values being the member variables' values.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static DumpBuilder
build()
This is a convenience method for easily instantiating the according builder.default Map<String,String>
toDump()
Dumps the state of the contained object (as ofObjectAccessor.ObjectMutator.setObject(Object)
) into aMap
which is returned as result.Map<String,String>
toDump(Object aObj)
Dumps the state of the provided object into aMap
which is returned as result.
-
-
-
Method Detail
-
toDump
default Map<String,String> toDump()
Dumps the state of the contained object (as ofObjectAccessor.ObjectMutator.setObject(Object)
) into aMap
which is returned as result.- Returns:
- The
Map
with the dumped properties of the implementing instance.
-
toDump
Map<String,String> toDump(Object aObj)
Dumps the state of the provided object into aMap
which is returned as result.- Parameters:
aObj
- The object for which to create the dump.- Returns:
- The
Map
with the dumped properties of the implementing instance.
-
build
static DumpBuilder build()
This is a convenience method for easily instantiating the according builder.- Returns:
- an instance (using a default implementation) of this builder
-
-