Scala Standard Library 2.13.1 - scala.util.Try (original) (raw)

sealed abstract class Try[+T] extends Product with Serializable

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. Try
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any

Implicitly

  1. by any2stringadd

  2. by StringFormat

  3. by Ensuring

  4. by ArrowAssoc

  5. Hide All

  6. Show All

Visibility

  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
  2. abstract def collect[U](pf: PartialFunction[T, U]): Try[U]
  3. abstract def failed: Try[Throwable]
  4. abstract def filter(p: (T) => Boolean): Try[T]
  5. abstract def flatMap[U](f: (T) => Try[U]): Try[U]
  6. abstract def flatten[U](implicit ev: <:<[T, Try[U]]): Try[U]
  7. abstract def fold[U](fa: (Throwable) => U, fb: (T) => U): U
  8. abstract def foreach[U](f: (T) => U): Unit
  9. abstract def get: T
  10. abstract def getOrElse[U >: T](default: => U): U
  11. abstract def isFailure: Boolean
  12. abstract def isSuccess: Boolean
  13. abstract def map[U](f: (T) => U): Try[U]
  14. abstract def orElse[U >: T](default: => Try[U]): Try[U]
  15. abstract def productArity: Int
  16. abstract def productElement(n: Int): Any
  17. abstract def recover[U >: T](pf: PartialFunction[Throwable, U]): Try[U]
  18. abstract def recoverWith[U >: T](pf: PartialFunction[Throwable, Try[U]]): Try[U]
  19. abstract def toEither: Either[Throwable, T]
  20. abstract def toOption: Option[T]
  21. abstract def transform[U](s: (T) => Try[U], f: (Throwable) => Try[U]): Try[U]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
  2. final def ##(): Int
  3. def +(other: String): String
  4. def ->[B](y: B): (Try[T], B)
  5. final def ==(arg0: Any): Boolean
  6. final def asInstanceOf[T0]: T0
  7. def clone(): AnyRef
  8. def ensuring(cond: (Try[T]) => Boolean, msg: => Any): Try[T]
  9. def ensuring(cond: (Try[T]) => Boolean): Try[T]
  10. def ensuring(cond: Boolean, msg: => Any): Try[T]
  11. def ensuring(cond: Boolean): Try[T]
  12. final def eq(arg0: AnyRef): Boolean
  13. def equals(arg0: AnyRef): Boolean
  14. def finalize(): Unit
  15. def formatted(fmtstr: String): String
  16. final def getClass(): Class[_ <: AnyRef]
  17. def hashCode(): Int
  18. final def isInstanceOf[T0]: Boolean
  19. final def ne(arg0: AnyRef): Boolean
  20. final def notify(): Unit
  21. final def notifyAll(): Unit
  22. def productElementName(n: Int): String
  23. def productElementNames: Iterator[String]
  24. def productIterator: Iterator[Any]
  25. def productPrefix: String
  26. final def synchronized[T0](arg0: => T0): T0
  27. def toString(): String
  28. final def wait(): Unit
  29. final def wait(arg0: Long, arg1: Int): Unit
  30. final def wait(arg0: Long): Unit
  31. final def withFilter(p: (T) => Boolean): WithFilter

Deprecated Value Members

  1. def →[B](y: B): (Try[T], B)

Ungrouped