trait ReprResultMapper[A] extends ResultMapper[A]
- Alphabetic
- By Inheritance
- ReprResultMapper
- ResultMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def to(value: List[(String, Value)], typeHint: Option[TypeHint]): Either[Throwable, A]
- Definition Classes
- ResultMapper
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def either[B](fa: ResultMapper[B]): ResultMapper[Either[A, B]]
Produces a ResultMapper where either the original or secondary mapper succeeds.
Produces a ResultMapper 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 ResultMapper.
- fa
A secondary ResultMapper to try if the first one fails.
- returns
A ResultMapper that, if sucessful, will return a value of either the original or secondary type.
- Definition Classes
- ResultMapper
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[B](f: (A) => ResultMapper[B]): ResultMapper[B]
Bind a function over this ResultMapper, if successful.
Bind a function over this ResultMapper, if successful. Useful for creating decoders that depend on multiple values in sequence.
- B
The result type of your new ResultMapper from your function.
- f
A function that returns a new ResultMapper.
- returns
A new ResultMapper derived from the value your original ResultMapper outputs.
- Definition Classes
- ResultMapper
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B): ResultMapper[B]
Creates a new ResultMapper by applying a function to the result value, if successful.
Creates a new ResultMapper 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.
- Definition Classes
- ResultMapper
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def or[AA >: A](mapper: => ResultMapper[AA]): ResultMapper[AA]
Allows supplying a secondary ResultMapper to try if the original fails.
Allows supplying a secondary ResultMapper to try if the original fails.
- AA
A type that is possibly a supertype of your original ResultMapper type.
- mapper
A ResultMapper to use if the current one fails.
- returns
A new ResultMapper that returns the type of the supplied secondary mapper.
- Definition Classes
- ResultMapper
- def product[B](fa: ResultMapper[B]): ResultMapper[(A, B)]
Combines the results of this ResultMapper with another as a tuple pair.
Combines the results of this ResultMapper with another as a tuple pair.
- B
The type of your second ResultMapper results.
- fa
A second ResultMapper that reads the same input values.
- returns
A ResultMapper that produces a pair of values.
- Definition Classes
- ResultMapper
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()