TextTable

case class TextTable(header: Seq[String], lines: Seq[Seq[String]], separator: String)

Textual representation of a table with a table and some lines.

It is expected that the size of the header and all the lines are the same.

The main purpose of this class is to:

  • display equal-length cells on each column
  • allow line breaks in cells for each line
Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def formatHeight(line: Seq[String]): Seq[Seq[String]]

Format each line cell by splitting them along new lines and adding padding with additional rows

Format each line cell by splitting them along new lines and adding padding with additional rows

def show: String

show the table with equal-length cells

show the table with equal-length cells

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product