Class ImmutableSignedTransaction<T extends Transaction>

java.lang.Object
org.xrpl.xrpl4j.crypto.signing.ImmutableSignedTransaction<T>
All Implemented Interfaces:
SignedTransaction<T>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Deprecated @Immutable @CheckReturnValue public final class ImmutableSignedTransaction<T extends Transaction> extends Object implements SignedTransaction<T>
Deprecated.
Immutable implementation of SignedTransaction.

Use the builder to create immutable instances: ImmutableSignedTransaction.builder().

  • Method Details

    • unsignedTransaction

      public T unsignedTransaction()
      Deprecated.
      The original transaction with no signature attached.
      Specified by:
      unsignedTransaction in interface SignedTransaction<T extends Transaction>
      Returns:
      A Transaction.
    • signedTransaction

      public T signedTransaction()
      Deprecated.
      The transaction with a signature blob attached.
      Specified by:
      signedTransaction in interface SignedTransaction<T extends Transaction>
      Returns:
      A Transaction.
    • signedTransactionBytes

      public UnsignedByteArray signedTransactionBytes()
      Deprecated.
      The signedTransaction() encoded into bytes that are suitable for submission to the XRP Ledger.
      Specified by:
      signedTransactionBytes in interface SignedTransaction<T extends Transaction>
      Returns:
      A byte-array containing the signed transaction blob.
    • signature

      public Signature signature()
      Deprecated.
      The bytes of this message.
      Specified by:
      signature in interface SignedTransaction<T extends Transaction>
      Returns:
      A byte-array.
    • hash

      public Hash256 hash()
      Deprecated.
      The hash of the signedTransactionBytes() which can be used as a handle to the transaction even though the transaction hasn't yet been submitted to the XRP Ledger. This field is derived by computing the SHA512-Half of the Signed Transaction hash prefix concatenated with signedTransactionBytes().
      Specified by:
      hash in interface SignedTransaction<T extends Transaction>
      Returns:
      A Hash256 containing the transaction hash.
    • withUnsignedTransaction

      public final ImmutableSignedTransaction<T> withUnsignedTransaction(T value)
      Deprecated.
      Copy the current immutable object by setting a value for the unsignedTransaction attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for unsignedTransaction
      Returns:
      A modified copy of the this object
    • withSignedTransaction

      public final ImmutableSignedTransaction<T> withSignedTransaction(T value)
      Deprecated.
      Copy the current immutable object by setting a value for the signedTransaction attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for signedTransaction
      Returns:
      A modified copy of the this object
    • withSignedTransactionBytes

      public final ImmutableSignedTransaction<T> withSignedTransactionBytes(UnsignedByteArray value)
      Deprecated.
      Copy the current immutable object by setting a value for the signedTransactionBytes attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for signedTransactionBytes
      Returns:
      A modified copy of the this object
    • withSignature

      public final ImmutableSignedTransaction<T> withSignature(Signature value)
      Deprecated.
      Copy the current immutable object by setting a value for the signature attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for signature
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      Deprecated.
      This instance is equal to all instances of ImmutableSignedTransaction that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Deprecated.
      Computes a hash code from attributes: unsignedTransaction, signedTransaction, signedTransactionBytes, signature, hash.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Deprecated.
      Prints the immutable value SignedTransaction with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static <T extends Transaction> ImmutableSignedTransaction<T> copyOf(SignedTransaction<T> instance)
      Deprecated.
      Creates an immutable copy of a SignedTransaction value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Type Parameters:
      T - generic parameter T
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable SignedTransaction instance
    • builder

      public static <T extends Transaction> ImmutableSignedTransaction.Builder<T> builder()
      Deprecated.
      Creates a builder for ImmutableSignedTransaction.
       ImmutableSignedTransaction.&lt;T&gt;builder()
          .unsignedTransaction(T) // required unsignedTransaction
          .signedTransaction(T) // required signedTransaction
          .signedTransactionBytes(org.xrpl.xrpl4j.codec.addresses.UnsignedByteArray) // required signedTransactionBytes
          .signature(org.xrpl.xrpl4j.crypto.signing.Signature) // required signature
          .build();
       
      Type Parameters:
      T - generic parameter T
      Returns:
      A new ImmutableSignedTransaction builder