Class ColumnFormatter


  • public class ColumnFormatter
    extends Object
    Author:
    Tom Mueller
    • Constructor Detail

      • ColumnFormatter

        public ColumnFormatter​(String[] headings)
      • ColumnFormatter

        public ColumnFormatter()
    • Method Detail

      • getContent

        public List<Map<String,​String>> getContent()
        Get the content of all rows along with the headings as a List of Map. Note : If there are duplicate headings, latest entry and its value will take precedence. This can be useful in case the CLI is used by GUI via REST as GUI expects a List of Map.
        Returns:
        List of Map all entries in in the ColumnFormatter