Packages

package text

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class SortedTableFormatter extends TableFormatter

    Extension of TableFormatter that sorts the rows by a column before outputting.

  2. class TableFormatter extends AnyRef

    Simple textual formatter for tabular data.

    Simple textual formatter for tabular data. This is intended to be used in text based user interfaces such as CLIs.

    Example without headers

    TableFormatter()
      .addRow("Apples", "25")
      .addRow("Pears", "10")
      .addRow("Bananas", "4")
      .print()

    Would output:

    Apples   25
    Pears    10
    Bananas  4

    Example with headers

    TableFormatter("Produce", "Remaining")
      .addRow("Apples", "25")
      .addRow("Pears", "10")
      .addRow("Bananas", "4")
      .print()

    Would output:

    | Produce | Remaining |
    -----------------------
    | Apples  | 25        |
    | Pears   | 10        |
    | Bananas | 4         |

Value Members

  1. object SortedTableFormatter
  2. object TableFormatter

Ungrouped