Package com.graphs.utils
Class PrettierPrinter
java.lang.Object
com.graphs.utils.PrettierPrinter
This utility class is a printer introducing methods that helps your printed outputs to be prettier.
It provides separators and headers.
- Since:
- 2.0
- Author:
- Ćukasz Malara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
newLine()
This method terminates the current line.static void
printFooter
(String footer) This method prints formatted footer.static void
printHeader
(String header) This method prints formatted header.static void
This method prints the separator and terminates the line.static void
This method prints separator.private static void
This method prints formatted text.
-
Constructor Details
-
PrettierPrinter
public PrettierPrinter()
-
-
Method Details
-
printSeparator
public static void printSeparator()This method prints separator.- Since:
- 1.0
-
newLine
public static void newLine()This method terminates the current line.- Since:
- 2.0
-
printlnSeparator
public static void printlnSeparator()This method prints the separator and terminates the line.- Since:
- 2.0
-
printHeader
This method prints formatted header.- Parameters:
header
- value to print prettier.- Since:
- 2.0
-
printTextAmongSeparators
This method prints formatted text.- Parameters:
text
- a value to print prettier- Since:
- 2.0
-