Row

com.phasmidsoftware.tableparser.core.table.Row
See theRow companion object
case class Row(ws: Seq[String], hdr: Header, index: Int) extends BaseRow

Case class to represent a (raw) row from a table.

Value parameters

hdr

is the Header containing the column names.

ws

the (raw) Strings that make up the row.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class BaseRow
trait String => Try[String]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString(): String

Generates a string representation of the row, including its values and header information.

Generates a string representation of the row, including its values and header information.

Attributes

Returns

a string in the format "Row: [value1, value2, ...] with header=HeaderObject".

Definition Classes
BaseRow -> Function1 -> Any

Inherited methods

def andThen[A](g: Try[String] => A): String => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
def apply(x: Int): Try[String]

Method to yield the xth element of this Row.

Method to yield the xth element of this Row.

Value parameters

x

an index from 0 thru length-1.

Attributes

Returns

the value as a String.

Inherited from:
BaseRow
def apply(w: String): Try[String]

Method to yield the value for a given column name

Method to yield the value for a given column name

CONSIDER: why is ParserException not found to link to?

Value parameters

w

the column name.

Attributes

Returns

the value as a String.

Inherited from:
BaseRow
def compose[A](g: A => String): A => Try[String]

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
def getIndex(column: String): Int

Method to get the index of a column name

Method to get the index of a column name

Value parameters

column

the column name

Attributes

Returns

the index, which might be -1

Inherited from:
BaseRow
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product