Package org.springframework.shell.table
Class KeyValueHorizontalAligner
java.lang.Object
org.springframework.shell.table.KeyValueHorizontalAligner
- All Implemented Interfaces:
Aligner
A text alignment strategy that aligns text horizontally so that all instances of some special character(s)
line up perfectly in a column.
Typically used to render numbers which may or may not have a decimal point, or series of key-value pairs
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
KeyValueHorizontalAligner
-
-
Method Details
-
align
Description copied from interface:Aligner
Perform text alignment, returning a String array that MUST containcellHeight
lines, each of which MUST becellWidth
chars in length.Input array is guaranteed to contain lines that have length equal to
cellWidth
. There is no guarantee on the input number of lines though.
-