Joinable

com.phasmidsoftware.tableparser.core.util.Joinable
See theJoinable companion object
trait Joinable[T]

Type class to define behavior of a type that can be joined.

Type parameters

T

the joinable type.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def join(t1: T, t2: T): T

Method to join t1 to t2.

Method to join t1 to t2.

Value parameters

t1

the first T value.

t2

the second T value.

Attributes

Returns

the joined T value.

def valid(t: T): Boolean

Method to determine if t is valid.

Method to determine if t is valid.

Value parameters

t

a T value.

Attributes

Returns

true if t is valid.

Concrete methods

def incomplete(t: T): Boolean

Method to determine if t is an incomplete record, which must be joined to what follows it before it can be parsed: for example, a line of CSV which ends inside a quoted field (whose value contains a line break, as RFC 4180 allows). By default, nothing is incomplete.

Method to determine if t is an incomplete record, which must be joined to what follows it before it can be parsed: for example, a line of CSV which ends inside a quoted field (whose value contains a line break, as RFC 4180 allows). By default, nothing is incomplete.

Value parameters

t

a T value.

Attributes

Returns

true if t must be joined to the T that follows it.

Abstract fields

val zero: T

The zero value for T.

The zero value for T.

Attributes