Field

case object Field

Factory methods for creating Fields. Fields values can also be concatenated to produce "summary" fields.

val f1 = Field(label, "hello") val f2 = Field(label, "world") val concatenatedFields = Field(label, f1, f2) concatenatedFields.toString == label: hello/world

val concatenatedFields2 = Field(label, ", ", f1, f2) concatenatedFields2.toString == label: hello, world

Companion:
class
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Field.type

Type members

Inherited types

type MirroredElemLabels = EmptyTuple
Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple
Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror
type MirroredMonoType = Singleton
Inherited from:
Singleton
type MirroredType = Singleton
Inherited from:
Singleton

Value members

Concrete methods

def apply[T](value: => T): Field[T]

create a Field with no label

create a Field with no label

def apply[T](label: String, value: => T): Field[T]

create a Field with a label and a value

create a Field with a label and a value

def apply(label: String, value1: Field[_], values: Field[_]*): Field[String]

create a Field with a label and other fields values, concatenated as strings

create a Field with a label and other fields values, concatenated as strings

def apply(label: String, separator: String, value1: Field[_], values: Field[_]*): Field[String]

create a Field with a label and other fields values, concatenated as strings

create a Field with a label and other fields values, concatenated as strings

Inherited methods

def fromProduct(p: Product): MirroredMonoType
Inherited from:
Singleton
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product