public class TextReportFormatter extends Object
Constructor and Description |
---|
TextReportFormatter() |
TextReportFormatter(StringBuilder sb) |
Modifier and Type | Method and Description |
---|---|
void |
consume(java.util.stream.Stream<String> lines)
Traverse over stream and add each element as a line
|
TextReportFormatter |
indent() |
TextReportFormatter |
indent(int numberOfSpaces) |
void |
indent(Runnable function) |
TextReportFormatter |
line(String s) |
String[] |
toArray() |
java.util.stream.Stream<String> |
toStream() |
String |
toString() |
TextReportFormatter |
unindent() |
void |
withFirstLine(String firstLinePrefix,
Runnable function) |
void |
withPrefix(String prefix,
Runnable function) |
public TextReportFormatter()
public TextReportFormatter(StringBuilder sb)
public String[] toArray()
public java.util.stream.Stream<String> toStream()
public TextReportFormatter line(String s)
public TextReportFormatter indent()
public TextReportFormatter indent(int numberOfSpaces)
public TextReportFormatter unindent()
public void indent(Runnable function)
public void consume(java.util.stream.Stream<String> lines)
lines
- to consume into this formatterCopyright © GigaSpaces.