public class KeyValueTextWrapper extends java.lang.Object implements TextWrapper
KeyValueSizeConstraints
, KeyValueHorizontalAligner
), that tries its
best to vertically align some delimiter character (default '=').Constructor and Description |
---|
KeyValueTextWrapper() |
KeyValueTextWrapper(java.lang.String delimiter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
wrap(java.lang.String[] original,
int columnWidth)
Return a list of lines where each line length MUST be equal to
columnWidth (padding with spaces if
appropriate). |
public KeyValueTextWrapper()
public KeyValueTextWrapper(java.lang.String delimiter)
public java.lang.String[] wrap(java.lang.String[] original, int columnWidth)
TextWrapper
columnWidth
(padding with spaces if
appropriate). There is no constraint on the number of lines returned however (typically, will be greater than
the input number if wrapping occurred).wrap
in interface TextWrapper