Scala Standard Library 2.13.15 - scala.util.Success (original) (raw)
final case class Success[+T](value: T) extends Try[T] with Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Success
- Try
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Instance Constructors
- new Success(value: T)
Value Members
- final def !=(arg0: Any): Boolean
- final def ##: Int
- def +(other: String): String
- def ->[B](y: B): (Success[T], B)
- final def ==(arg0: Any): Boolean
- final def asInstanceOf[T0]: T0
- def clone(): AnyRef
- def collect[U](pf: PartialFunction[T, U]): Try[U]
- def ensuring(cond: (Success[T]) => Boolean, msg: => Any): Success[T]
- def ensuring(cond: (Success[T]) => Boolean): Success[T]
- def ensuring(cond: Boolean, msg: => Any): Success[T]
- def ensuring(cond: Boolean): Success[T]
- final def eq(arg0: AnyRef): Boolean
- def failed: Try[Throwable]
- def filter(p: (T) => Boolean): Try[T]
- def finalize(): Unit
- def flatMap[U](f: (T) => Try[U]): Try[U]
- def flatten[U](implicit ev: <:<[T, Try[U]]): Try[U]
- def fold[U](fa: (Throwable) => U, fb: (T) => U): U
- def foreach[U](f: (T) => U): Unit
- def get: T
- final def getClass(): Class[_ <: AnyRef]
- def getOrElse[U >: T](default: => U): U
- def isFailure: Boolean
- final def isInstanceOf[T0]: Boolean
- def isSuccess: Boolean
- def map[U](f: (T) => U): Try[U]
- final def ne(arg0: AnyRef): Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def orElse[U >: T](default: => Try[U]): Try[U]
- def productElementNames: Iterator[String]
- def recover[U >: T](pf: PartialFunction[Throwable, U]): Try[U]
- def recoverWith[U >: T](pf: PartialFunction[Throwable, Try[U]]): Try[U]
- final def synchronized[T0](arg0: => T0): T0
- def toEither: Either[Throwable, T]
- def toOption: Option[T]
- def transform[U](s: (T) => Try[U], f: (Throwable) => Try[U]): Try[U]
- val value: T
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- final def withFilter(p: (T) => Boolean): WithFilter