Packages

case class OneOf[O, T](variants: List[OneOfVariant[_ <: O]], mapping: Mapping[O, T]) extends Single[T] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Single[T], EndpointOutput[T], EndpointTransput[T], EndpointTransputMacros[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OneOf
  2. Serializable
  3. Product
  4. Equals
  5. Single
  6. EndpointOutput
  7. EndpointTransput
  8. EndpointTransputMacros
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OneOf(variants: List[OneOfVariant[_ <: O]], mapping: Mapping[O, T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def and[J, IJ](other: EndpointOutput[J])(implicit concat: typelevel.ParamConcat.Aux[T, J, IJ]): EndpointOutput[IJ]
    Definition Classes
    EndpointOutput
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def map[U](_mapping: Mapping[T, U]): OneOf[O, U]
    Definition Classes
    OneOfEndpointTransput
  11. def map[U](f: (T) => U)(g: (U) => T): ThisType[U]
    Definition Classes
    EndpointTransput
  12. def mapDecode[U](f: (T) => DecodeResult[U])(g: (U) => T): ThisType[U]
    Definition Classes
    EndpointTransput
  13. macro def mapTo[CASE_CLASS]: ThisType[CASE_CLASS]
    Definition Classes
    EndpointTransputMacros
  14. def mapValidate[U](v: Validator[T])(f: (T) => U)(g: (U) => T): ThisType[U]

    Adds the given validator, and maps to the given higher-level type U.

    Adds the given validator, and maps to the given higher-level type U.

    Unlike a .validate(v).map(f)(g) invocation, during decoding the validator is run before applying the f function. If there are validation errors, decoding fails. However, the validator is then invoked again on the fully decoded value.

    This is useful to create inputs/outputs for types, which are unrepresentable unless the validator's condition is met, e.g. due to preconditions in the constructor.

    Definition Classes
    EndpointTransput
    See also

    validate

  15. val mapping: Mapping[O, T]
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. def show: String
    Definition Classes
    OneOfEndpointTransput
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def validate(v: Validator[T]): ThisType[T]

    Adds a validator.

    Adds a validator.

    Note that validation is run on a fully decoded value. That is, during decoding, first the decoding functions are run, followed by validations. Hence any functions provided in subsequent .maps or .mapDecodes will be invoked before validation.

    Definition Classes
    EndpointTransput
    See also

    mapValidate

  23. val variants: List[OneOfVariant[_ <: O]]
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Single[T]

Inherited from EndpointOutput[T]

Inherited from EndpointTransput[T]

Inherited from EndpointTransputMacros[T]

Inherited from AnyRef

Inherited from Any

Ungrouped