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) |
TextReportFormatter |
removeLinePrefix() |
TextReportFormatter |
startLineWithPrefix(String prefix) |
String[] |
toArray() |
java.util.stream.Stream<String> |
toStream() |
String |
toString() |
TextReportFormatter |
unindent() |
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 startLineWithPrefix(String prefix)
public TextReportFormatter removeLinePrefix()
public TextReportFormatter unindent()
public void indent(Runnable function)
public void consume(java.util.stream.Stream<String> lines)
lines
- to consume into this formatterCopyright © GigaSpaces.