Class ImmutableSignableTransaction
java.lang.Object
org.xrpl.xrpl4j.crypto.core.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:originalUnsignedTransaction
,signableTransactionBytes
.The original transaction (unsigned) that corresponds this signed transcation.The (unsigned) bytes of the transaction to be signed, in canonical format.toString()
Prints the immutable valueSignableTransaction
with attribute values.Copy the current immutable object by setting a value for theoriginalUnsignedTransaction
attribute.Copy the current immutable object by setting a value for thesignableTransactionBytes
attribute.
-
Method Details
-
originalUnsignedTransaction
The original transaction (unsigned) that corresponds this signed transcation.- Specified by:
originalUnsignedTransaction
in interfaceSignableTransaction
- Returns:
- A
Transaction
.
-
signableTransactionBytes
The (unsigned) bytes of the transaction to be signed, in canonical format.- Specified by:
signableTransactionBytes
in interfaceSignableTransaction
- Returns:
- An
UnsignedByteArray
.
-
withOriginalUnsignedTransaction
Copy the current immutable object by setting a value for theoriginalUnsignedTransaction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for originalUnsignedTransaction- 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:originalUnsignedTransaction
,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() .originalUnsignedTransaction(org.xrpl.xrpl4j.model.transactions.Transaction) // required
originalUnsignedTransaction
.signableTransactionBytes(org.xrpl.xrpl4j.codec.addresses.UnsignedByteArray) // requiredsignableTransactionBytes
.build();- Returns:
- A new ImmutableSignableTransaction builder
-