Class SecpResult.Ok<T>

java.lang.Object
org.bitcoinj.secp.SecpResult.Ok<T>
Type Parameters:
T - type of the successful result
All Implemented Interfaces:
SecpResult<T>
Enclosing interface:
SecpResult<T>

public static final class SecpResult.Ok<T> extends Object implements SecpResult<T>
A successful result containing a value of type <T> in result().
  • Constructor Details

    • Ok

      public Ok(T result)
      Construct a successful result from a result value
      Parameters:
      result - result value
  • Method Details

    • result

      public T result()
      Get the result value
      Returns:
      result value