case class Enumeration[T](possibleValues: List[T], encode: Option[EncodeToRaw[T]], name: Option[SName]) extends Primitive[T] with Product with Serializable
- Alphabetic
- By Inheritance
- Enumeration
- Serializable
- Product
- Equals
- Primitive
- Validator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Enumeration(possibleValues: List[T], encode: Option[EncodeToRaw[T]], name: Option[SName])
Value Members
- final def !=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
- def and(other: Validator[T]): Validator[T]
- Definition Classes
- Validator
- def apply(t: T): List[ValidationError[T]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def contramap[TT](g: (TT) => T): Validator[TT]
- Definition Classes
- Validator
- def doValidate(t: T): ValidationResult
- Definition Classes
- Enumeration → Primitive
- def encode(e: (T) => scala.Any): Enumeration[T]
Specify how values of this type can be encoded to a raw value (typically a String).
Specify how values of this type can be encoded to a raw value (typically a String). This encoding will be used when generating documentation.
- val encode: Option[EncodeToRaw[T]]
- 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.
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.
- def encodeWithPlainCodec(implicit c: PlainCodec[T]): Enumeration[T]
Specify that values of this type should be encoded to a raw value using an in-scope plain codec.
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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[SName]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def or(other: Validator[T]): Validator[T]
- Definition Classes
- Validator
- val possibleValues: List[T]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def show: Option[String]
- Definition Classes
- Validator
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated