object EOr
- Alphabetic
- By Inheritance
- EOr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val unit: EOr[Unit]
A successful EOr of type Unit
- 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])