Packages

implicit final class TryOps[A] extends AnyVal

Extension methods for Try[A].

Source
ops.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TryOps
  2. AnyVal
  3. Any
Implicitly
  1. by AnyOps
  2. by AnyOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TryOps(value: Try[A])

Value Members

  1. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  2. def toFuture: Future[A]

    Creates an already completed Future with the result or exception of this Try.

    Creates an already completed Future with the result or exception of this Try.

    returns

    the already completed Future instance with the contents of this Try

    Annotations
    @inline()

Shadowed Implicit Value Members

  1. def future: Future[TryOps[A]]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    returns

    the already completed Future with the specified result

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).future
    Definition Classes
    AnyOps
    Annotations
    @inline()
  2. def future: Future[TryOps[A]]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    returns

    the already completed Future with the specified result

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).future
    Definition Classes
    AnyOps
    Annotations
    @inline()
  3. def option: Option[TryOps[A]]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, None otherwise

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).option
    Definition Classes
    AnyOps
    Annotations
    @inline()
  4. def option: Option[TryOps[A]]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, None otherwise

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).option
    Definition Classes
    AnyOps
    Annotations
    @inline()
  5. def tap(f: (TryOps[A]) ⇒ Unit): TryOps[A]

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    f

    the side-effectful method to apply to value

    returns

    value

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).tap(f)
    Definition Classes
    AnyOps
  6. def tap(f: (TryOps[A]) ⇒ Unit): TryOps[A]

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    f

    the side-effectful method to apply to value

    returns

    value

    Implicit
    This member is added by an implicit conversion from TryOps[A] to AnyOps[TryOps[A]] performed by method AnyOps in scail.commons.ops.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tryOps: AnyOps[TryOps[A]]).tap(f)
    Definition Classes
    AnyOps