public class ObjectArrayFormatter extends Object
Constructor and Description |
---|
ObjectArrayFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
addEmptyLine()
Add a empty line to the list of lines.
|
void |
addLine(List<String> lines)
Add the given lines value to existing lines.
|
String |
getAsString()
Get the columned string according to the titles, lines and spaces.
|
void |
setMaxColumnLength(int maxColumnLength)
Set the maxColumnLength value to the given maxColumnLength value
|
void |
setSpace(int spaces)
Set the space value to the given space value.
|
void |
setTitle(List<String> title)
Set the title value to the given title value.
|
public void setTitle(List<String> title)
title
- the title to setpublic void addLine(List<String> lines)
lines
- the lines to addpublic void addEmptyLine()
public void setSpace(int spaces)
spaces
- the space to setpublic void setMaxColumnLength(int maxColumnLength)
maxColumnLength
- the maxColumnLength to setpublic String getAsString()