Try.Success
Keywords: net.corda.core.utilities.Try.Success class
Date: 2023-09-18

net.corda.core.utilities

## Class Try.Success<A>

- net.corda.core.utilities.Try<A>
- - net.corda.core.utilities.Try.Success<A>

- Enclosing class:
    Try<A>

      public static class Try.Success<A>
      extends Try<A>

- - ### Constructor Detail

    - #### Success

          public Success(A value)

  - ### Method Detail

    - #### isSuccess

          public boolean isSuccess()

      Returns `true` iff the `class Try` is a `class Try.Failure`.

      See Also:
        `class Try`, `class Try.Failure`

    - #### isFailure

          public boolean isFailure()

      Returns `true` iff the `class Try` is a `class Try.Success`.

      See Also:
        `class Try`, `class Try.Success`

    - #### getOrThrow

          public A getOrThrow()

      Returns the value if a `class Try.Success` otherwise throws the exception if a `class Try.Failure`.

      See Also:
        `class Try.Success`, `class Try.Failure`

    - #### toString

          @NotNull
          public java.lang.String toString()

    - #### getValue

          public A getValue()

    - #### component1

          public A component1()

    - #### copy

          @NotNull
          public net.corda.core.utilities.Try.Success<A> copy(A value)

    - #### hashCode

          public int hashCode()

    - #### equals

          public boolean equals(@Nullable
                                java.lang.Object p)