public class KeyValueTextWrapper extends Object implements TextWrapper
KeyValueSizeConstraints
, KeyValueHorizontalAligner
), that tries its
best to vertically align some delimiter character (default '=').Constructor and Description |
---|
KeyValueTextWrapper() |
KeyValueTextWrapper(String delimiter) |
public KeyValueTextWrapper()
public KeyValueTextWrapper(String delimiter)
public String[] wrap(String[] original, int columnWidth)
wrap
in interface TextWrapper
original
- the text in its original formcolumnWidth
- the width to conform tocolumnWidth
(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).Copyright © 2024. All rights reserved.