Package org.approvej.print
Record Class SingleLineStringPrintFormat
java.lang.Object
java.lang.Record
org.approvej.print.SingleLineStringPrintFormat
- All Implemented Interfaces:
PrintFormat<Object>
A generic print format for Java
Objects that prints that uses the Object.toString() method.-
Field Summary
Fields inherited from interface org.approvej.print.PrintFormat
DEFAULT_FILENAME_EXTENSION -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aSingleLineStringPrintFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.printer()Returns the printer implementing this format.static @NonNull SingleLineStringPrintFormatCreates a newSingleLineStringPrintFormat.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.approvej.print.PrintFormat
filenameExtension
-
Constructor Details
-
SingleLineStringPrintFormat
public SingleLineStringPrintFormat()Creates an instance of aSingleLineStringPrintFormatrecord class.
-
-
Method Details
-
printer
Description copied from interface:PrintFormatReturns the printer implementing this format.- Specified by:
printerin interfacePrintFormat<Object>- Returns:
- the printer implementing this format
-
singleLineString
Creates a newSingleLineStringPrintFormat.- Returns:
- a new
SingleLineStringPrintFormat
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-