Class ImmutableSignedTransaction<T extends Transaction>
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.transactions.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 ofSignedTransaction
.Use the builder to create immutable instances:
ImmutableSignedTransaction.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableSignedTransaction.Builder<T extends Transaction>
Deprecated.Builds instances of typeImmutableSignedTransaction
.
-
Field Summary
-
Fields inherited from interface org.xrpl.xrpl4j.model.client.transactions.SignedTransaction
SIGNED_TRANSACTION_HASH_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <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
equals(Object another)
Deprecated.This instance is equal to all instances ofImmutableSignedTransaction
that have equal attribute values.Hash256
hash()
Deprecated.The hash of the signed transaction.int
hashCode()
Deprecated.Computes a hash code from attributes:signedTransaction
,signedTransactionBlob
,hash
.T
signedTransaction()
Deprecated.The signed transaction.String
signedTransactionBlob()
Deprecated.The signed transaction, as a hex encoded binary string.String
toString()
Deprecated.Prints the immutable valueSignedTransaction
with attribute values.ImmutableSignedTransaction<T>
withSignedTransaction(T value)
Deprecated.Copy the current immutable object by setting a value for thesignedTransaction
attribute.ImmutableSignedTransaction<T>
withSignedTransactionBlob(String value)
Deprecated.Copy the current immutable object by setting a value for thesignedTransactionBlob
attribute.
-
-
-
Method Detail
-
signedTransaction
public T signedTransaction()
Deprecated.The signed transaction.- Specified by:
signedTransaction
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A transaction that has been signed.
-
signedTransactionBlob
public String signedTransactionBlob()
Deprecated.The signed transaction, as a hex encoded binary string.- Specified by:
signedTransactionBlob
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A
String
containing the signed transaction blob.
-
hash
public Hash256 hash()
Deprecated.The hash of the signed transaction. This field is derived by computing the SHA512Half of the Signed Transaction hash prefix concatenated with the signed transaction blob.- Specified by:
hash
in interfaceSignedTransaction<T extends Transaction>
- Returns:
- A
Hash256
containing the transaction hash.
-
withSignedTransaction
public final ImmutableSignedTransaction<T> withSignedTransaction(T value)
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
-
withSignedTransactionBlob
public final ImmutableSignedTransaction<T> withSignedTransactionBlob(String value)
Deprecated.Copy the current immutable object by setting a value for thesignedTransactionBlob
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signedTransactionBlob- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
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:signedTransaction
,signedTransactionBlob
,hash
.
-
toString
public String 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
public static <T extends Transaction> ImmutableSignedTransaction.Builder<T> builder()
Deprecated.Creates a builder forImmutableSignedTransaction
.ImmutableSignedTransaction.<T>builder() .signedTransaction(T) // required
signedTransaction
.signedTransactionBlob(String) // requiredsignedTransactionBlob
.build();- Type Parameters:
T
- generic parameter T- Returns:
- A new ImmutableSignedTransaction builder
-
-