Class ImmutableRawTransactionWrapper

java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableRawTransactionWrapper
All Implemented Interfaces:
RawTransactionWrapper

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRawTransactionWrapper extends Object implements RawTransactionWrapper
Immutable implementation of RawTransactionWrapper.

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

  • Method Details

    • rawTransaction

      public Transaction rawTransaction()
      The inner transaction. This transaction must:
      • Have the tfInnerBatchTxn flag set
      • Have a fee of 0
      • Have an empty SigningPubKey
      • Not have a TxnSignature
      Specified by:
      rawTransaction in interface RawTransactionWrapper
      Returns:
      A Transaction.
    • withRawTransaction

      public final ImmutableRawTransactionWrapper withRawTransaction(Transaction value)
      Copy the current immutable object by setting a value for the rawTransaction attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for rawTransaction
      Returns:
      A modified copy of the this object
    • equals

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

      public int hashCode()
      Computes a hash code from attributes: rawTransaction.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableRawTransactionWrapper copyOf(RawTransactionWrapper instance)
      Creates an immutable copy of a RawTransactionWrapper value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable RawTransactionWrapper instance
    • builder

      public static ImmutableRawTransactionWrapper.Builder builder()
      Creates a builder for ImmutableRawTransactionWrapper.
       ImmutableRawTransactionWrapper.builder()
          .rawTransaction(org.xrpl.xrpl4j.model.transactions.Transaction) // required rawTransaction
          .build();
       
      Returns:
      A new ImmutableRawTransactionWrapper builder