Packages

class SortedTableFormatter extends TableFormatter

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortedTableFormatter
  2. TableFormatter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SortedTableFormatter(headers: Option[Seq[String]], separator: String = " ", prefix: String = "", suffix: String = "", stripTrailingNewline: Boolean = false, sortColumnIndex: Int = 0)

    headers

    optional column headers.

    separator

    separator to use between columns.

    prefix

    prefix to use before first column.

    suffix

    suffix to use after last column.

    sortColumnIndex

    index of the column (zero-based) to sort by.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +=(columns: Seq[String]): TableFormatter

    Add a row to this table.

    Add a row to this table.

    Definition Classes
    TableFormatter
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def addRow(columns: String*): TableFormatter

    Add a row to this table.

    Add a row to this table.

    Definition Classes
    TableFormatter
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val contents: Buffer[Seq[String]]
    Attributes
    protected
    Definition Classes
    TableFormatter
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. val headers: Option[Seq[String]]
    Definition Classes
    TableFormatter
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. val prefix: String
    Definition Classes
    TableFormatter
  19. def print(out: PrintStream): Unit

    Prints this table to the specified stream.

    Prints this table to the specified stream.

    out

    stream to print to.

    Definition Classes
    TableFormatter
  20. def print(): Unit

    Prints this table to stdout.

    Prints this table to stdout.

    Definition Classes
    TableFormatter
  21. def rows: Seq[Seq[String]]

    Current contents of this table.

    Current contents of this table.

    Definition Classes
    SortedTableFormatterTableFormatter
    Annotations
    @SuppressWarnings()
  22. val separator: String
    Definition Classes
    TableFormatter
  23. val sortColumnIndex: Int
  24. val stripTrailingNewline: Boolean
    Definition Classes
    TableFormatter
  25. val suffix: String
    Definition Classes
    TableFormatter
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String

    Formats the contents of this table and returns them as a string.

    Formats the contents of this table and returns them as a string.

    Definition Classes
    TableFormatter → AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. def withPrefix(newPrefix: String): TableFormatter

    Creates a new TableFormatter, copying the settings from this and with the supplied prefix.

    Creates a new TableFormatter, copying the settings from this and with the supplied prefix.

    The rows in this table will not be copied to the new table.

    newPrefix

    prefix to use before first column.

    returns

    An empty table with the updated settings.

    Definition Classes
    TableFormatter
  32. def withSeparator(newSeparator: String): TableFormatter

    Creates a new TableFormatter, copying the settings from this and with the supplied separator.

    Creates a new TableFormatter, copying the settings from this and with the supplied separator.

    The rows in this table will not be copied to the new table.

    newSeparator

    separator to use between columns.

    returns

    An empty table with the updated settings.

    Definition Classes
    TableFormatter
  33. def withSortColumnIndex(newSortColumnIndex: Int): SortedTableFormatter

    Creates a new SortedTableFormatter, copying the settings from this and with the supplied sort column index.

    Creates a new SortedTableFormatter, copying the settings from this and with the supplied sort column index.

    The rows in this table will not be copied to the new table.

    newSortColumnIndex

    index of the column (zero-based) to sort by.

    returns

    An empty table with the updated settings.

  34. def withStripTrailingNewline: TableFormatter

    Creates a new TableFormatter, copying the settings from this and with stripTrailingNewline enabled.

    Creates a new TableFormatter, copying the settings from this and with stripTrailingNewline enabled.

    The rows in this table will not be copied to the new table.

    returns

    An empty table with the updated settings.

    Definition Classes
    TableFormatter
  35. def withSuffix(newSuffix: String): TableFormatter

    Creates a new TableFormatter, copying the settings from this and with the supplied suffix.

    Creates a new TableFormatter, copying the settings from this and with the supplied suffix.

    The rows in this table will not be copied to the new table.

    newSuffix

    suffix to use after last column.

    returns

    An empty table with the updated settings.

    Definition Classes
    TableFormatter

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from TableFormatter

Inherited from AnyRef

Inherited from Any

Ungrouped