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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableRawTransactionWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableRawTransactionWrapper.copyOf(RawTransactionWrapper instance) Creates an immutable copy of aRawTransactionWrappervalue.booleanThis instance is equal to all instances ofImmutableRawTransactionWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:rawTransaction.The inner transaction.toString()Prints the immutable valueRawTransactionWrapperwith attribute values.withRawTransaction(Transaction value) Copy the current immutable object by setting a value for therawTransactionattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xrpl.xrpl4j.model.transactions.RawTransactionWrapper
check
-
Method Details
-
rawTransaction
The inner transaction. This transaction must:- Have the
tfInnerBatchTxnflag set - Have a fee of 0
- Have an empty
SigningPubKey - Not have a
TxnSignature
- Specified by:
rawTransactionin interfaceRawTransactionWrapper- Returns:
- A
Transaction.
- Have the
-
withRawTransaction
Copy the current immutable object by setting a value for therawTransactionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rawTransaction- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableRawTransactionWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:rawTransaction. -
toString
Prints the immutable valueRawTransactionWrapperwith attribute values. -
copyOf
Creates an immutable copy of aRawTransactionWrappervalue. 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
Creates a builder forImmutableRawTransactionWrapper.ImmutableRawTransactionWrapper.builder() .rawTransaction(org.xrpl.xrpl4j.model.transactions.Transaction) // requiredrawTransaction.build();- Returns:
- A new ImmutableRawTransactionWrapper builder
-