public class PrintHelper extends Object
Constructor and Description |
---|
PrintHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
print(String value,
int indent,
int columnWidth)
Prints a string wrapping it as necessary while respecting any explicit
line breaks
|
static void |
printChars(char c,
int repeats)
Prints the given character a given number of times
|
static void |
printIndent(int indent)
Prints an indent using spaces
|
public static void printIndent(int indent)
indent
- Amount of indentpublic static void printChars(char c, int repeats)
c
- Characterrepeats
- Number of times to printpublic static void print(String value, int indent, int columnWidth)
value
- Value to printindent
- IndentcolumnWidth
- Column width to wrap to, this excludes any indent so callers
should take their desired indent into account when calculating
their desired column width.Copyright © 2015. All rights reserved.