Class AsciiTableFormatter

java.lang.Object
com.github.rlacher.sortbench.util.AsciiTableFormatter

public class AsciiTableFormatter extends Object
Formats a list of AggregatedResult into an ASCII table.
  • Constructor Details

    • AsciiTableFormatter

      public AsciiTableFormatter()
      Parameterless constructor initialising class fields to defaults (i.e. delimiters, number formatter).
    • AsciiTableFormatter

      public AsciiTableFormatter(Locale locale, char titleRowDelimiter, char columnDelimiter)
      Overloaded constructor initialising class fields with provided Locale and delimiters.
      Parameters:
      locale - The Locale to use for number formatting. Must not be null.
      titleRowDelimiter - The character to use for the title row delimiter.
      columnDelimiter - The character to use for the column delimiter.
      Throws:
      IllegalArgumentException - If locale is null or if the delimiters are not printable ASCII characters.
  • Method Details