Package space.arim.dazzleconf.backend
Class Printable.Abstract
java.lang.Object
space.arim.dazzleconf.backend.Printable.Abstract
- All Implemented Interfaces:
Printable
- Enclosing interface:
Printable
A base implementation for
Printable.
Usage is simple. Extend this class and implement the only required method, Printable.printTo(Appendable).
This class implements the other "print" methods, as well as toString.
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.arim.dazzleconf.backend.Printable
Printable.Abstract -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @NonNull StringGets the printed content as a stringfinal voidprintTo(@NonNull StringBuilder output) Prints to the given builderfinal @NonNull StringtoString()Gets a string representation.
-
Constructor Details
-
Abstract
public Abstract()Creates
-
-
Method Details
-
printString
Description copied from interface:PrintableGets the printed content as a string- Specified by:
printStringin interfacePrintable- Returns:
- printed string
-
printTo
Description copied from interface:PrintablePrints to the given builder -
toString
Description copied from interface:PrintableGets a string representation.Implementations are strongly encouraged (but not required) to return the same value as fo
Printable.printString()
-