trait ResultMapper[A] extends AnyRef
Allows decoding a neotypes.model.types.NeoType into a value of type A
.
- Self Type
- ResultMapper[A]
- Annotations
- @implicitNotFound()
- Source
- ResultMapper.scala
- Alphabetic
- By Inheritance
- ResultMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def decode(value: NeoType): Either[ResultMapperException, A]
Attempts to decode the given neotypes.model.types.NeoType, may fail with a neotypes.model.exceptions.ResultMapperException.
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 and[B](other: ResultMapper[B]): ResultMapper[(A, B)]
Combines the result of another mapper with this one.
Combines the result of another mapper with this one. In case both fail, the errors will be merged into a model.exceptions.ChainException.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def emap[B](f: (A) => Either[ResultMapperException, B]): ResultMapper[B]
Chains a transformation function that can fail.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def flatMap[B](f: (A) => ResultMapper[B]): ResultMapper[B]
Chains another mapper based on decoding result of this one.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[B](f: (A) => B): ResultMapper[B]
Chains a transformation function that can not fail.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def or[B >: A](other: ResultMapper[B]): ResultMapper[B]
Chains a mapper as a fallback when this one fails.
Chains a mapper as a fallback when this one fails. In case both fail, the errors will be merged into a model.exceptions.ChainException.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def transform[B](f: (Either[ResultMapperException, A]) => Either[ResultMapperException, B]): ResultMapper[B]
Chains a transformation function that can manage failures.
- 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])
- final def widen[B >: A]: ResultMapper[B]
Used to emulate covariance subtyping.