java.lang.Object
ushiosan.jvm_utilities.lang.print.PrintObj
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachExtension(boolean verbose, @NotNull Pair<Apply.Result<Object, String>, Class<?>[]> extension) Insert new printable extension to the instancevoidattachExtension(boolean verbose, Apply.Result<Object, String> action, Class<?> @NotNull ... supported) Insert new printable extension to the instancetoInstanceString(@NotNull Object instance) Loop through the entire object and create a representation of the object in a text string.Object string representation
-
Method Details
-
toString
Object string representation- Parameters:
obj- object string representationverbose- output verbose mode- Returns:
- object string representation
-
toInstanceString
Loop through the entire object and create a representation of the object in a text string. This behavior can be configured using class annotations such asPrintOptsandPrintExclude.- Parameters:
instance- the object to transform- Returns:
- object string representation
-
attachExtension
public void attachExtension(boolean verbose, @NotNull @NotNull Pair<Apply.Result<Object, String>, Class<?>[]> extension) Insert new printable extension to the instance- Parameters:
verbose- determines the level of detail in the output of the contentextension- the extension to insert
-
attachExtension
public void attachExtension(boolean verbose, @NotNull Apply.Result<Object, String> action, Class<?> @NotNull ... supported) Insert new printable extension to the instance- Parameters:
verbose- determines the level of detail in the output of the contentaction- the extension actionsupported- supported elements
-