public class AlignedBlock extends Object
| Constructor and Description |
|---|
AlignedBlock(IndentedPrintStream out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
align(Object... o)
Add a row to the block, each String represents a piece of text which should be aligned.
|
void |
print()
Output the block without additional separators.
|
void |
print(String separator,
String terminator)
Outputs the block, with the given separator appended to each line except the last, and the given
terminator appended to the last line.
|
public AlignedBlock(IndentedPrintStream out)
out - An IndentedPrintStream to which the block will be output.public void align(Object... o)
o - Variable number of Strings to align.public void print(String separator, String terminator)
separator - text added to each line except the last/terminator - text added to the last line.public void print()
Copyright © 2017 The Symphony Software Foundation. All rights reserved.