Packages

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
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultMapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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

  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 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.

  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]) @IntrinsicCandidate() @native()
  7. final def emap[B](f: (A) => Either[ResultMapperException, B]): ResultMapper[B]

    Chains a transformation function that can fail.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def flatMap[B](f: (A) => ResultMapper[B]): ResultMapper[B]

    Chains another mapper based on decoding result of this one.

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

    Chains a transformation function that can not fail.

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. 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.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def transform[B](f: (Either[ResultMapperException, A]) => Either[ResultMapperException, B]): ResultMapper[B]

    Chains a transformation function that can manage failures.

  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def widen[B >: A]: ResultMapper[B]

    Used to emulate covariance subtyping.

Deprecated Value Members

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

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped