Package org.xrpl.xrpl4j.crypto.signing
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()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.Builds instances of typeImmutableSignedTransaction
. -
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.crypto.signing.SignedTransaction
SIGNED_TRANSACTION_HASH_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Transaction>
ImmutableSignedTransaction.Builder<T>builder()
Deprecated.Creates a builder forImmutableSignedTransaction
.static <T extends Transaction>
ImmutableSignedTransaction<T>copyOf
(SignedTransaction<T> instance) Deprecated.Creates an immutable copy of aSignedTransaction
value.boolean
Deprecated.This instance is equal to all instances ofImmutableSignedTransaction
that have equal attribute values.hash()
Deprecated.The hash of thesignedTransactionBytes()
which can be used as a handle to the transaction even though the transaction hasn't yet been submitted to the XRP Ledger.int
hashCode()
Deprecated.Computes a hash code from attributes:unsignedTransaction
,signedTransaction
,signedTransactionBytes
,signature
,hash
.Deprecated.The bytes of this message.Deprecated.The transaction with a signature blob attached.Deprecated.ThesignedTransaction()
encoded into bytes that are suitable for submission to the XRP Ledger.toString()
Deprecated.Prints the immutable valueSignedTransaction
with attribute values.Deprecated.The original transaction with no signature attached.final ImmutableSignedTransaction<T>
withSignature
(Signature value) Deprecated.Copy the current immutable object by setting a value for thesignature
attribute.final ImmutableSignedTransaction<T>
withSignedTransaction
(T value) Deprecated.Copy the current immutable object by setting a value for thesignedTransaction
attribute.final ImmutableSignedTransaction<T>
Deprecated.Copy the current immutable object by setting a value for thesignedTransactionBytes
attribute.final ImmutableSignedTransaction<T>
withUnsignedTransaction
(T value) Deprecated.Copy the current immutable object by setting a value for theunsignedTransaction
attribute.
-
Method Details
-
unsignedTransaction
Deprecated.The original transaction with no signature attached.- Specified by:
unsignedTransaction
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A
Transaction
.
-
signedTransaction
Deprecated.The transaction with a signature blob attached.- Specified by:
signedTransaction
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A
Transaction
.
-
signedTransactionBytes
Deprecated.ThesignedTransaction()
encoded into bytes that are suitable for submission to the XRP Ledger.- Specified by:
signedTransactionBytes
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A byte-array containing the signed transaction blob.
-
signature
Deprecated.The bytes of this message.- Specified by:
signature
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A byte-array.
-
hash
Deprecated.The hash of thesignedTransactionBytes()
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 withsignedTransactionBytes()
.- Specified by:
hash
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A
Hash256
containing the transaction hash.
-
withUnsignedTransaction
Deprecated.Copy the current immutable object by setting a value for theunsignedTransaction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for unsignedTransaction- Returns:
- A modified copy of the
this
object
-
withSignedTransaction
Deprecated.Copy the current immutable object by setting a value for thesignedTransaction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signedTransaction- Returns:
- A modified copy of the
this
object
-
withSignedTransactionBytes
Deprecated.Copy the current immutable object by setting a value for thesignedTransactionBytes
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signedTransactionBytes- Returns:
- A modified copy of the
this
object
-
withSignature
Deprecated.Copy the current immutable object by setting a value for thesignature
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signature- Returns:
- A modified copy of the
this
object
-
equals
Deprecated.This instance is equal to all instances ofImmutableSignedTransaction
that have equal attribute values. -
hashCode
public int hashCode()Deprecated.Computes a hash code from attributes:unsignedTransaction
,signedTransaction
,signedTransactionBytes
,signature
,hash
. -
toString
Deprecated.Prints the immutable valueSignedTransaction
with attribute values. -
copyOf
public static <T extends Transaction> ImmutableSignedTransaction<T> copyOf(SignedTransaction<T> instance) Deprecated.Creates an immutable copy of aSignedTransaction
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
Deprecated.Creates a builder forImmutableSignedTransaction
.ImmutableSignedTransaction.<T>builder() .unsignedTransaction(T) // required
unsignedTransaction
.signedTransaction(T) // requiredsignedTransaction
.signedTransactionBytes(org.xrpl.xrpl4j.codec.addresses.UnsignedByteArray) // requiredsignedTransactionBytes
.signature(org.xrpl.xrpl4j.crypto.signing.Signature) // requiredsignature
.build();- Type Parameters:
T
- generic parameter T- Returns:
- A new ImmutableSignedTransaction builder
-