sealed
trait
Outcome[+S, +F] extends AnyRef
Abstract Value Members
-
abstract
def
either: Either[F, S]
-
abstract
def
exists(f: (S) ⇒ Boolean): Boolean
-
abstract
def
filter[FF >: F](f: (S) ⇒ Boolean, failure: FF): Outcome[S, FF]
-
abstract
def
flatMap[T, FF >: F](f: (S) ⇒ Outcome[T, FF]): Outcome[T, FF]
-
abstract
def
flatten[T, FF >: F](implicit asOutcome: (S) ⇒ Outcome[T, FF]): Outcome[T, FF]
-
abstract
def
fold[T](onSuccess: (S) ⇒ T, onFailure: (F) ⇒ T): T
-
abstract
def
forall(f: (S) ⇒ Boolean): Boolean
-
abstract
def
foreach[T](f: (S) ⇒ T): Unit
-
abstract
def
isFailure: Boolean
-
abstract
def
isSuccess: Boolean
-
abstract
def
map[T](f: (S) ⇒ T): Outcome[T, F]
-
abstract
def
mapFailure[V](onFailure: (F) ⇒ V): Outcome[S, V]
-
abstract
def
rescue[SS >: S, FF](f: (F) ⇒ Outcome[SS, FF]): Outcome[SS, FF]
-
abstract
def
toOption: Option[S]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Represents the outcome of an action where an action results in the disjoint union of two states: success or failure. The only instances of io.fsq.common.base.Outcome are io.fsq.common.base.Success and io.fsq.common.base.Failure. By default, io.fsq.common.base.Outcome operates as a monad over the successful state.