Package org.approvej.print
Class MultiLineStringPrintFormat
java.lang.Object
org.approvej.print.MultiLineStringPrintFormat
- All Implemented Interfaces:
PrintFormat<Object>
@NullMarked
public final class MultiLineStringPrintFormat
extends Object
implements PrintFormat<Object>
A generic printer for Java
Objects that prints their properties and values one per line.-
Field Summary
Fields inherited from interface org.approvej.print.PrintFormat
DEFAULT_FILENAME_EXTENSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiLineStringPrintFormatCreates a newMultiLineStringPrintFormat.printer()Returns the printer implementing this format.sorted()Sort the printed object's fields alphabetically by their name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.approvej.print.PrintFormat
filenameExtension
-
Constructor Details
-
MultiLineStringPrintFormat
public MultiLineStringPrintFormat()Default constructor to be used inConfiguration.
-
-
Method Details
-
printer
Description copied from interface:PrintFormatReturns the printer implementing this format.- Specified by:
printerin interfacePrintFormat<Object>- Returns:
- the printer implementing this format
-
sorted
Sort the printed object's fields alphabetically by their name. By default, the fields will be printed in the order of their declaration.- Returns:
- a copy of this sorting fields by name
-
multiLineString
Creates a newMultiLineStringPrintFormat.- Returns:
- a new
MultiLineStringPrintFormat
-