Packages

object EOr

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EOr
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Failure(e: E) extends EOr[Nothing] with Product with Serializable

    A failed EOr

    A failed EOr

    e

    An error

  2. final case class Success[+A](a: A) extends EOr[A] with Product with Serializable

    A successful EOr

    A successful EOr

    A

    Type of the value this EOr can contain

    a

    A value

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 apply[A](a: A): EOr[A]

    Constructs a successful EOr containing given value

    Constructs a successful EOr containing given value

    A

    Type of value of resulting EOr

    a

    A value

    returns

    A new failed EOr containing given value

  5. def apply[A](e: E): EOr[A]

    Constructs a failed EOr containing given E

    Constructs a failed EOr containing given E

    A

    Type of value of resulting EOr

    e

    An E

    returns

    A new failed EOr containing given E

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val filteredError: E

    A default E to be used when condition does not hold while filtering an EOr

    A default E to be used when condition does not hold while filtering an EOr

    See also

    e.scala.EOr#withFilter

  11. def fromEither[L, R](either: Either[L, R])(ifLeft: (L) => E): EOr[R]

    Constructs an EOr from an _root_.scala.util.Either

    Constructs an EOr from an _root_.scala.util.Either

    L

    Type of Left value of Either

    R

    Type of Right value of Either

    either

    An Either

    ifLeft

    An E conversion function in case Either is Left

    returns

    An EOr containing either Right value in Either or an E computed by given function

  12. def fromOption[A](option: Option[A])(ifNone: => E): EOr[A]

    Constructs an EOr from an _root_.scala.Option

    Constructs an EOr from an _root_.scala.Option

    A

    Type of value of Option

    option

    An Option

    ifNone

    An error to use in case Option is None

    returns

    An EOr containing either value in Option or given E

  13. def fromTry[A](try: Try[A])(ifFailure: (Throwable) => E): EOr[A]

    Constructs an EOr from a _root_.scala.util.Try

    Constructs an EOr from a _root_.scala.util.Try

    A

    Type of value of Try

    try

    A Try

    ifFailure

    An E conversion function in case Try is Failure

    returns

    An EOr containing either value in Try or an E computed by given function

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. val unit: EOr[Unit]

    A successful EOr of type Unit

  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()
  25. 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

Inherited from AnyRef

Inherited from Any

Ungrouped