trait ValueMapper[A] extends AnyRef

Self Type
ValueMapper[A]
Annotations
@implicitNotFound("Could not find the ValueMapper for ${A}")
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValueMapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def to(fieldName: String, value: Option[Value]): Either[Throwable, A]

Concrete 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def either[B](fa: ValueMapper[B]): ValueMapper[Either[A, B]]

    Produces a ValueMapper where either the original or secondary mapper succeeds.

    Produces a ValueMapper where either the original or secondary mapper succeeds. The original mapper result is on the Left side, and the secondary mapper is on the Right.

    B

    The result type of your secondary ValueMapper.

    fa

    A secondary ValueMapper to try if the first one fails.

    returns

    A ValueMapper that, if sucessful, will return a value of either the original or secondary type.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def flatMap[B](f: (A) => ValueMapper[B]): ValueMapper[B]

    Bind a function over this ValueMapper, if successful.

    Bind a function over this ValueMapper, if successful. Useful for creating decoders that depend on multiple values in sequence.

    B

    The result type of your new ValueMapper from your function.

    f

    A function that returns a new ValueMapper.

    returns

    A new ValueMapper derived from the value your original ValueMapper outputs.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def map[B](f: (A) => B): ValueMapper[B]

    Creates a new ValueMapper by applying a function to the result value, if successful.

    Creates a new ValueMapper by applying a function to the result value, if successful.

    B

    The return type of your supplied function.

    f

    A function to apply to the result value of this ResultMapper.

    returns

    A new ResultMapper that applies your function to the result.

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def or[AA >: A](mapper: => ValueMapper[AA]): ValueMapper[AA]

    Allows supplying a secondary ValueMapper to try if the original fails.

    Allows supplying a secondary ValueMapper to try if the original fails.

    AA

    A type that is possibly a supertype of your original ValueMapper type.

    mapper

    A ValueMapper to use if the current one fails.

    returns

    A new ValueMapper that returns the type of the supplied secondary mapper.

  19. def product[B](fa: ValueMapper[B]): ValueMapper[(A, B)]

    Combines the results of this ValueMapper with another as a tuple pair.

    Combines the results of this ValueMapper with another as a tuple pair.

    B

    The type of your second ValueMapper results.

    fa

    A second ValueMapper that reads the same input values.

    returns

    A ValueMapper that produces a pair of values.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped