Package org.xrpl.xrpl4j.crypto.signing
Class ImmutableSignableTransaction
java.lang.Object
org.xrpl.xrpl4j.crypto.signing.ImmutableSignableTransaction
- All Implemented Interfaces:
SignableTransaction
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSignableTransaction
extends Object
implements SignableTransaction
Immutable implementation of
SignableTransaction
.
Use the builder to create immutable instances:
ImmutableSignableTransaction.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSignableTransaction
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSignableTransaction
.static ImmutableSignableTransaction
copyOf
(SignableTransaction instance) Creates an immutable copy of aSignableTransaction
value.boolean
This instance is equal to all instances ofImmutableSignableTransaction
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:originalTransaction
,signableTransactionBytes
.The original transaction that corresponds to this object.The bytes of this message in canonical format such that signing them can be used by the XRP Ledger.toString()
Prints the immutable valueSignableTransaction
with attribute values.Copy the current immutable object by setting a value for theoriginalTransaction
attribute.Copy the current immutable object by setting a value for thesignableTransactionBytes
attribute.
-
Method Details
-
originalTransaction
The original transaction that corresponds to this object.- Specified by:
originalTransaction
in interfaceSignableTransaction
- Returns:
- A
Transaction
.
-
signableTransactionBytes
The bytes of this message in canonical format such that signing them can be used by the XRP Ledger.- Specified by:
signableTransactionBytes
in interfaceSignableTransaction
- Returns:
- An
UnsignedByteArray
.
-
withOriginalTransaction
Copy the current immutable object by setting a value for theoriginalTransaction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for originalTransaction- Returns:
- A modified copy of the
this
object
-
withSignableTransactionBytes
Copy the current immutable object by setting a value for thesignableTransactionBytes
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signableTransactionBytes- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSignableTransaction
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:originalTransaction
,signableTransactionBytes
. -
toString
Prints the immutable valueSignableTransaction
with attribute values. -
copyOf
Creates an immutable copy of aSignableTransaction
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 SignableTransaction instance
-
builder
Creates a builder forImmutableSignableTransaction
.ImmutableSignableTransaction.builder() .originalTransaction(org.xrpl.xrpl4j.model.transactions.Transaction) // required
originalTransaction
.signableTransactionBytes(org.xrpl.xrpl4j.codec.addresses.UnsignedByteArray) // requiredsignableTransactionBytes
.build();- Returns:
- A new ImmutableSignableTransaction builder
-