Enumeration

case
class Enumeration[T](possibleValues: List[T], encode: Option[() => T], name: Option[SName]) extends Primitive[T]
trait Serializable
trait Product
trait Equals
trait Primitive[T]
trait Validator[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def apply(t: T): List[ValidationError[_]]
Definition Classes
def encode(e: T => Any): Enumeration[T]

Specify how values of this type can be encoded to a raw value (typically a String). This encoding will be used when generating documentation.

Specify how values of this type can be encoded to a raw value (typically a String). This encoding will be used when generating documentation.

def encodeWithCodec[CF <: CodecFormat](implicit c: Codec[String, T, CF]): Enumeration[T]

Specify that values of this type should be encoded to a raw value using an in-scope codec of the given format. This encoding will be used when generating documentation.

Specify that values of this type should be encoded to a raw value using an in-scope codec of the given format. This encoding will be used when generating documentation.

Specify that values of this type should be encoded to a raw value using an in-scope plain codec. This encoding will be used when generating documentation.

Specify that values of this type should be encoded to a raw value using an in-scope plain codec. This encoding will be used when generating documentation.

Inherited methods

def and(other: Validator[T]): Validator[T]
Inherited from
Validator
def contramap[TT](g: TT => T): Validator[TT]
Inherited from
Validator
def or(other: Validator[T]): Validator[T]
Inherited from
Validator
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def show: Option[String]
Inherited from
Validator