Scala Standard Library 2.13.1 - scala.util.Try (original) (raw)
sealed abstract class Try[+T] extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Try
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def canEqual(that: Any): Boolean
- abstract def collect[U](pf: PartialFunction[T, U]): Try[U]
- abstract def failed: Try[Throwable]
- abstract def filter(p: (T) => Boolean): Try[T]
- abstract def flatMap[U](f: (T) => Try[U]): Try[U]
- abstract def flatten[U](implicit ev: <:<[T, Try[U]]): Try[U]
- abstract def fold[U](fa: (Throwable) => U, fb: (T) => U): U
- abstract def foreach[U](f: (T) => U): Unit
- abstract def get: T
- abstract def getOrElse[U >: T](default: => U): U
- abstract def isFailure: Boolean
- abstract def isSuccess: Boolean
- abstract def map[U](f: (T) => U): Try[U]
- abstract def orElse[U >: T](default: => Try[U]): Try[U]
- abstract def productArity: Int
- abstract def productElement(n: Int): Any
- abstract def recover[U >: T](pf: PartialFunction[Throwable, U]): Try[U]
- abstract def recoverWith[U >: T](pf: PartialFunction[Throwable, Try[U]]): Try[U]
- abstract def toEither: Either[Throwable, T]
- abstract def toOption: Option[T]
- abstract def transform[U](s: (T) => Try[U], f: (Throwable) => Try[U]): Try[U]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##(): Int
- def +(other: String): String
- def ->[B](y: B): (Try[T], B)
- final def ==(arg0: Any): Boolean
- final def asInstanceOf[T0]: T0
- def clone(): AnyRef
- def ensuring(cond: (Try[T]) => Boolean, msg: => Any): Try[T]
- def ensuring(cond: (Try[T]) => Boolean): Try[T]
- def ensuring(cond: Boolean, msg: => Any): Try[T]
- def ensuring(cond: Boolean): Try[T]
- final def eq(arg0: AnyRef): Boolean
- def equals(arg0: AnyRef): Boolean
- def finalize(): Unit
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- def hashCode(): Int
- final def isInstanceOf[T0]: Boolean
- final def ne(arg0: AnyRef): Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def productElementName(n: Int): String
- def productElementNames: Iterator[String]
- def productIterator: Iterator[Any]
- def productPrefix: String
- 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
- final def withFilter(p: (T) => Boolean): WithFilter
Deprecated Value Members
- def →[B](y: B): (Try[T], B)