Class ImmutableEscrowFinish
- All Implemented Interfaces:
EscrowFinish,Transaction
EscrowFinish.
Use the builder to create immutable instances:
ImmutableEscrowFinish.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEscrowFinish. -
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.EscrowFinish
loggerFields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionaccount()The uniqueAddressof the account that initiated this transaction.Hash value identifying another transaction.builder()Creates a builder forImmutableEscrowFinish.Optional<com.ripple.cryptoconditions.Condition> Hex value matching the previously-supplied PREIMAGE-SHA-256 crypto-condition of the held payment.The raw, hex-encoded PREIMAGE-SHA-256 crypto-condition of the escrow.static ImmutableEscrowFinishcopyOf(EscrowFinish instance) Creates an immutable copy of aEscrowFinishvalue.com.google.common.collect.ImmutableList<Hash256> Set of Credentials to authorize a deposit made by this transaction.delegate()The delegate account that is sending the transaction on behalf of theaccount().booleanThis instance is equal to all instances ofImmutableEscrowFinishthat have equal attribute values.fee()TheStringrepresentation of an integer amount of XRP, in drops, to be destroyed as a cost for distributing this Payment transaction to the network.flags()Set ofTransactionFlagss for thisEscrowFinish, which only allows thetfFullyCanonicalSigflag, which is deprecated.Optional<com.ripple.cryptoconditions.Fulfillment<?>> Hex value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition().The raw, hex-encoded value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition().inthashCode()Computes a hash code from attributes:account,transactionType,fee,sequence,ticketSequence,accountTransactionId,lastLedgerSequence,memos,signers,sourceTag,signingPublicKey,transactionSignature,networkId,delegate,unknownFields,flags,owner,offerSequence,condition,conditionRawValue,fulfillment,fulfillmentRawValue,credentialIds.Optional<com.google.common.primitives.UnsignedInteger> Highest ledger index this transaction can appear in.com.google.common.collect.ImmutableList<MemoWrapper> memos()Additional arbitrary information used to identify thisTransaction.com.google.common.primitives.UnsignedIntegerTheTransaction.sequence()of the transaction that created the escrow to cancel.owner()Addressof the source account that funded the escrow payment.com.google.common.primitives.UnsignedIntegersequence()The sequence number of the account submitting theTransaction.com.google.common.collect.ImmutableList<SignerWrapper> signers()Array ofSignerWrappers that represent a multi-signature which authorizes thisTransaction.ThePublicKeythat corresponds to the private key used to sign this transaction.Optional<com.google.common.primitives.UnsignedInteger> ArbitraryUnsignedIntegerused to identify the reason for thisTransaction, or a sender on whose behalf thisTransactionis made.Optional<com.google.common.primitives.UnsignedInteger> The sequence number of theTicketObjectto use in place of asequence()number.toString()Prints the immutable valueEscrowFinishwith attribute values.The signature that verifies this transaction as originating from the account it says it is from.The type of transaction.final ImmutableEscrowFinishwithAccount(Address value) Copy the current immutable object by setting a value for theaccountattribute.final ImmutableEscrowFinishwithAccountTransactionId(Optional<? extends Hash256> optional) Copy the current immutable object by setting an optional value for theaccountTransactionIdattribute.final ImmutableEscrowFinishwithAccountTransactionId(Hash256 value) Copy the current immutable object by setting a present value for the optionalaccountTransactionIdattribute.final ImmutableEscrowFinishwithCondition(com.ripple.cryptoconditions.Condition value) Copy the current immutable object by setting a present value for the optionalconditionattribute.final ImmutableEscrowFinishwithCondition(Optional<? extends com.ripple.cryptoconditions.Condition> optional) Copy the current immutable object by setting an optional value for theconditionattribute.final ImmutableEscrowFinishwithConditionRawValue(String value) Copy the current immutable object by setting a present value for the optionalconditionRawValueattribute.final ImmutableEscrowFinishwithConditionRawValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theconditionRawValueattribute.final ImmutableEscrowFinishwithCredentialIds(Iterable<? extends Hash256> elements) Copy the current immutable object with elements that replace the content ofcredentialIds.final ImmutableEscrowFinishwithCredentialIds(Hash256... elements) Copy the current immutable object with elements that replace the content ofcredentialIds.final ImmutableEscrowFinishwithDelegate(Optional<? extends Address> optional) Copy the current immutable object by setting an optional value for thedelegateattribute.final ImmutableEscrowFinishwithDelegate(Address value) Copy the current immutable object by setting a present value for the optionaldelegateattribute.final ImmutableEscrowFinishwithFee(XrpCurrencyAmount value) Copy the current immutable object by setting a value for thefeeattribute.final ImmutableEscrowFinishwithFlags(TransactionFlags value) Copy the current immutable object by setting a value for theflagsattribute.final ImmutableEscrowFinishwithFulfillment(com.ripple.cryptoconditions.Fulfillment<?> value) Copy the current immutable object by setting a present value for the optionalfulfillmentattribute.final ImmutableEscrowFinishwithFulfillment(Optional<? extends com.ripple.cryptoconditions.Fulfillment<?>> optional) Copy the current immutable object by setting an optional value for thefulfillmentattribute.final ImmutableEscrowFinishwithFulfillmentRawValue(String value) Copy the current immutable object by setting a present value for the optionalfulfillmentRawValueattribute.final ImmutableEscrowFinishwithFulfillmentRawValue(Optional<String> optional) Copy the current immutable object by setting an optional value for thefulfillmentRawValueattribute.final ImmutableEscrowFinishwithLastLedgerSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallastLedgerSequenceattribute.final ImmutableEscrowFinishwithLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thelastLedgerSequenceattribute.final ImmutableEscrowFinishwithMemos(Iterable<? extends MemoWrapper> elements) Copy the current immutable object with elements that replace the content ofmemos.final ImmutableEscrowFinishwithMemos(MemoWrapper... elements) Copy the current immutable object with elements that replace the content ofmemos.final ImmutableEscrowFinishwithNetworkId(Optional<? extends NetworkId> optional) Copy the current immutable object by setting an optional value for thenetworkIdattribute.final ImmutableEscrowFinishwithNetworkId(NetworkId value) Copy the current immutable object by setting a present value for the optionalnetworkIdattribute.final ImmutableEscrowFinishwithOfferSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for theofferSequenceattribute.final ImmutableEscrowFinishCopy the current immutable object by setting a value for theownerattribute.final ImmutableEscrowFinishwithSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for thesequenceattribute.final ImmutableEscrowFinishwithSigners(Iterable<? extends SignerWrapper> elements) Copy the current immutable object with elements that replace the content ofsigners.final ImmutableEscrowFinishwithSigners(SignerWrapper... elements) Copy the current immutable object with elements that replace the content ofsigners.final ImmutableEscrowFinishwithSigningPublicKey(PublicKey value) Copy the current immutable object by setting a value for thesigningPublicKeyattribute.final ImmutableEscrowFinishwithSourceTag(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalsourceTagattribute.final ImmutableEscrowFinishwithSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thesourceTagattribute.final ImmutableEscrowFinishwithTicketSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalticketSequenceattribute.final ImmutableEscrowFinishwithTicketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for theticketSequenceattribute.final ImmutableEscrowFinishwithTransactionSignature(Optional<? extends Signature> optional) Copy the current immutable object by setting an optional value for thetransactionSignatureattribute.final ImmutableEscrowFinishCopy the current immutable object by setting a present value for the optionaltransactionSignatureattribute.final ImmutableEscrowFinishCopy the current immutable object by setting a value for thetransactionTypeattribute.final ImmutableEscrowFinishwithUnknownFields(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theunknownFieldsmap with the specified map.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xrpl.xrpl4j.model.transactions.EscrowFinish
normalizeCondition, normalizeFulfillment, validateCredentialIdsLength, validateUniqueCredentialIdsMethods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
transactionFlags, validateDelegateNotSameAsAccount
-
Method Details
-
account
The uniqueAddressof the account that initiated this transaction.- Specified by:
accountin interfaceTransaction- Returns:
- The
Addressof the account submitting this transaction.
-
transactionType
The type of transaction.- Specified by:
transactionTypein interfaceTransaction- Returns:
- A
TransactionType.
-
fee
TheStringrepresentation of an integer amount of XRP, in drops, to be destroyed as a cost for distributing this Payment transaction to the network.This field is auto-fillable
- Specified by:
feein interfaceTransaction- Returns:
- An
XrpCurrencyAmountrepresenting the transaction cost. - See Also:
-
sequence
public com.google.common.primitives.UnsignedInteger sequence()The sequence number of the account submitting theTransaction. ATransactionis only valid if the Sequence number is exactly 1 greater than the previous transaction from the same account.This field is auto-fillable
- Specified by:
sequencein interfaceTransaction- Returns:
- An
UnsignedIntegerrepresenting the sequence of the transaction. - See Also:
-
ticketSequence
The sequence number of theTicketObjectto use in place of asequence()number. If this is provided,sequence()must be 0. Cannot be used withaccountTransactionId().- Specified by:
ticketSequencein interfaceTransaction- Returns:
- An
UnsignedIntegerrepresenting the ticket sequence of the transaction.
-
accountTransactionId
Hash value identifying another transaction. If provided, thisTransactionis only valid if the sending account's previously-sent transaction matches the provided hash.- Specified by:
accountTransactionIdin interfaceTransaction- Returns:
- An
Optionalof typeHash256containing the account transaction ID.
-
lastLedgerSequence
Highest ledger index this transaction can appear in. Specifying this field places a strict upper limit on how long the transaction can wait to be validated or rejected.- Specified by:
lastLedgerSequencein interfaceTransaction- Returns:
- An
Optionalof typeUnsignedIntegerrepresenting the last ledger sequence.
-
memos
Additional arbitrary information used to identify thisTransaction.- Specified by:
memosin interfaceTransaction- Returns:
- A
ListofMemoWrappers.
-
signers
Array ofSignerWrappers that represent a multi-signature which authorizes thisTransaction.- Specified by:
signersin interfaceTransaction- Returns:
- A
ListofSignerWrappers.
-
sourceTag
ArbitraryUnsignedIntegerused to identify the reason for thisTransaction, or a sender on whose behalf thisTransactionis made.- Specified by:
sourceTagin interfaceTransaction- Returns:
- An
OptionalUnsignedIntegerrepresenting the source account's tag.
-
signingPublicKey
ThePublicKeythat corresponds to the private key used to sign this transaction. If an empty string, iePublicKey.MULTI_SIGN_PUBLIC_KEY, indicates a multi-signature is present in theTransaction.signers()field instead.- Specified by:
signingPublicKeyin interfaceTransaction- Returns:
- A
PublicKeycontaining the public key of the account submitting the transaction, orPublicKey.MULTI_SIGN_PUBLIC_KEYif the transaction is multi-signed.
-
transactionSignature
The signature that verifies this transaction as originating from the account it says it is from.This field is automatically added when signing this
Transaction.- Specified by:
transactionSignaturein interfaceTransaction- Returns:
- An
OptionalStringcontaining the transaction signature.
-
networkId
- Specified by:
networkIdin interfaceTransaction- Returns:
- The value of the
networkIdattribute
-
delegate
The delegate account that is sending the transaction on behalf of theaccount().The way the
Delegatefield works is somewhat akin toRegularKey. Theaccount()field is the delegating account, theDelegatefield is the delegate, and thesigningPublicKey()andtransactionSignature()are based on the delegate's keys.If a
Delegatehas multisign enabled, they can also use that multisign setup on their delegated transactions.The delegate will pay the fees on the transaction, to prevent a delegate from draining an account's XRP via fees. Only the
account()'s sequence number is incremented, not theDelegate's.This field is part of the Permission Delegation feature (XLS-75).
- Specified by:
delegatein interfaceTransaction- Returns:
- An
OptionalAddressof the delegate account. - See Also:
-
unknownFields
- Specified by:
unknownFieldsin interfaceTransaction- Returns:
- The value of the
unknownFieldsattribute
-
flags
Set ofTransactionFlagss for thisEscrowFinish, which only allows thetfFullyCanonicalSigflag, which is deprecated.The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.
- Specified by:
flagsin interfaceEscrowFinish- Returns:
- Always
TransactionFlags.EMPTY.
-
owner
Addressof the source account that funded the escrow payment.- Specified by:
ownerin interfaceEscrowFinish- Returns:
- The
Addressof the source account.
-
offerSequence
public com.google.common.primitives.UnsignedInteger offerSequence()TheTransaction.sequence()of the transaction that created the escrow to cancel.- Specified by:
offerSequencein interfaceEscrowFinish- Returns:
- An
UnsignedIntegerrepresenting the sequence number.
-
condition
Hex value matching the previously-supplied PREIMAGE-SHA-256 crypto-condition of the held payment.If this field is empty, developers should check if
conditionRawValue()is also empty. IfconditionRawValue()is present, it means that the"Condition"field of the transaction was not a well-formed crypto-condition but was still present in a transaction on ledger.- Specified by:
conditionin interfaceEscrowFinish- Returns:
- An
Optionalof typeConditioncontaining the escrow condition.
-
conditionRawValue
The raw, hex-encoded PREIMAGE-SHA-256 crypto-condition of the escrow.Developers should prefer setting
condition()and leaving this field empty when constructing a newEscrowFinish. This field is used to serialize and deserialize the"Condition"field in JSON, the XRPL will sometimes include anEscrowFinishin its ledger even if the crypto condition is malformed. Without this field, xrpl4j would fail to deserialize those transactions, ascondition()is typed as aCondition, which tries to decode the condition from DER.Note that a similar field does not exist on
EscrowCreate,EscrowObject, orMetaEscrowObjectbecauseEscrowCreates with malformed conditions will never be included in a ledger by the XRPL. Because of this fact, anEscrowObjectandMetaEscrowObjectwill also never contain a malformed crypto condition.- Specified by:
conditionRawValuein interfaceEscrowFinish- Returns:
- An
OptionalStringcontaining the hex-encoded PREIMAGE-SHA-256 condition.
-
fulfillment
Hex value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition().If this field is empty, developers should check if
fulfillmentRawValue()is also empty. IffulfillmentRawValue()is present, it means that the"Fulfillment"field of the transaction was not a well-formed crypto-condition fulfillment but was still present in a transaction on ledger.- Specified by:
fulfillmentin interfaceEscrowFinish- Returns:
- An
Optionalof typeFulfillmentcontaining the fulfillment for the escrow's condition.
-
fulfillmentRawValue
The raw, hex-encoded value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition().Developers should prefer setting
fulfillment()and leaving this field empty when constructing a newEscrowFinish. This field is used to serialize and deserialize the"Fulfillment"field in JSON, the XRPL will sometimes include anEscrowFinishin its ledger even if the crypto fulfillment is malformed. Without this field, xrpl4j would fail to deserialize those transactions, asfulfillment()is typed as aFulfillment, which tries to decode the fulfillment from DER.- Specified by:
fulfillmentRawValuein interfaceEscrowFinish- Returns:
- An
OptionalStringcontaining the hex-encoded PREIMAGE-SHA-256 fulfillment.
-
credentialIds
Set of Credentials to authorize a deposit made by this transaction. Each member of the array must be the ledger entry ID of a Credential entry in the ledger.- Specified by:
credentialIdsin interfaceEscrowFinish- Returns:
- A list of type
Hash256.
-
withAccount
Copy the current immutable object by setting a value for theaccountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for account- Returns:
- A modified copy of the
thisobject
-
withTransactionType
Copy the current immutable object by setting a value for thetransactionTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for transactionType- Returns:
- A modified copy of the
thisobject
-
withFee
Copy the current immutable object by setting a value for thefeeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fee- Returns:
- A modified copy of the
thisobject
-
withSequence
Copy the current immutable object by setting a value for thesequenceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sequence- Returns:
- A modified copy of the
thisobject
-
withTicketSequence
public final ImmutableEscrowFinish withTicketSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalticketSequenceattribute.- Parameters:
value- The value for ticketSequence- Returns:
- A modified copy of
thisobject
-
withTicketSequence
public final ImmutableEscrowFinish withTicketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for theticketSequenceattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for ticketSequence- Returns:
- A modified copy of
thisobject
-
withAccountTransactionId
Copy the current immutable object by setting a present value for the optionalaccountTransactionIdattribute.- Parameters:
value- The value for accountTransactionId- Returns:
- A modified copy of
thisobject
-
withAccountTransactionId
Copy the current immutable object by setting an optional value for theaccountTransactionIdattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for accountTransactionId- Returns:
- A modified copy of
thisobject
-
withLastLedgerSequence
public final ImmutableEscrowFinish withLastLedgerSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallastLedgerSequenceattribute.- Parameters:
value- The value for lastLedgerSequence- Returns:
- A modified copy of
thisobject
-
withLastLedgerSequence
public final ImmutableEscrowFinish withLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thelastLedgerSequenceattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for lastLedgerSequence- Returns:
- A modified copy of
thisobject
-
withMemos
Copy the current immutable object with elements that replace the content ofmemos.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMemos
Copy the current immutable object with elements that replace the content ofmemos. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of memos elements to set- Returns:
- A modified copy of
thisobject
-
withSigners
Copy the current immutable object with elements that replace the content ofsigners.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSigners
Copy the current immutable object with elements that replace the content ofsigners. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of signers elements to set- Returns:
- A modified copy of
thisobject
-
withSourceTag
public final ImmutableEscrowFinish withSourceTag(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalsourceTagattribute.- Parameters:
value- The value for sourceTag- Returns:
- A modified copy of
thisobject
-
withSourceTag
public final ImmutableEscrowFinish withSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thesourceTagattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sourceTag- Returns:
- A modified copy of
thisobject
-
withSigningPublicKey
Copy the current immutable object by setting a value for thesigningPublicKeyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signingPublicKey- Returns:
- A modified copy of the
thisobject
-
withTransactionSignature
Copy the current immutable object by setting a present value for the optionaltransactionSignatureattribute.- Parameters:
value- The value for transactionSignature- Returns:
- A modified copy of
thisobject
-
withTransactionSignature
Copy the current immutable object by setting an optional value for thetransactionSignatureattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for transactionSignature- Returns:
- A modified copy of
thisobject
-
withNetworkId
Copy the current immutable object by setting a present value for the optionalnetworkIdattribute.- Parameters:
value- The value for networkId- Returns:
- A modified copy of
thisobject
-
withNetworkId
Copy the current immutable object by setting an optional value for thenetworkIdattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for networkId- Returns:
- A modified copy of
thisobject
-
withDelegate
Copy the current immutable object by setting a present value for the optionaldelegateattribute.- Parameters:
value- The value for delegate- Returns:
- A modified copy of
thisobject
-
withDelegate
Copy the current immutable object by setting an optional value for thedelegateattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for delegate- Returns:
- A modified copy of
thisobject
-
withUnknownFields
Copy the current immutable object by replacing theunknownFieldsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the unknownFields map- Returns:
- A modified copy of
thisobject
-
withFlags
Copy the current immutable object by setting a value for theflagsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for flags- Returns:
- A modified copy of the
thisobject
-
withOwner
Copy the current immutable object by setting a value for theownerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for owner- Returns:
- A modified copy of the
thisobject
-
withOfferSequence
public final ImmutableEscrowFinish withOfferSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for theofferSequenceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for offerSequence- Returns:
- A modified copy of the
thisobject
-
withCondition
Copy the current immutable object by setting a present value for the optionalconditionattribute.- Parameters:
value- The value for condition- Returns:
- A modified copy of
thisobject
-
withCondition
public final ImmutableEscrowFinish withCondition(Optional<? extends com.ripple.cryptoconditions.Condition> optional) Copy the current immutable object by setting an optional value for theconditionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for condition- Returns:
- A modified copy of
thisobject
-
withConditionRawValue
Copy the current immutable object by setting a present value for the optionalconditionRawValueattribute.- Parameters:
value- The value for conditionRawValue- Returns:
- A modified copy of
thisobject
-
withConditionRawValue
Copy the current immutable object by setting an optional value for theconditionRawValueattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for conditionRawValue- Returns:
- A modified copy of
thisobject
-
withFulfillment
public final ImmutableEscrowFinish withFulfillment(com.ripple.cryptoconditions.Fulfillment<?> value) Copy the current immutable object by setting a present value for the optionalfulfillmentattribute.- Parameters:
value- The value for fulfillment- Returns:
- A modified copy of
thisobject
-
withFulfillment
public final ImmutableEscrowFinish withFulfillment(Optional<? extends com.ripple.cryptoconditions.Fulfillment<?>> optional) Copy the current immutable object by setting an optional value for thefulfillmentattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for fulfillment- Returns:
- A modified copy of
thisobject
-
withFulfillmentRawValue
Copy the current immutable object by setting a present value for the optionalfulfillmentRawValueattribute.- Parameters:
value- The value for fulfillmentRawValue- Returns:
- A modified copy of
thisobject
-
withFulfillmentRawValue
Copy the current immutable object by setting an optional value for thefulfillmentRawValueattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for fulfillmentRawValue- Returns:
- A modified copy of
thisobject
-
withCredentialIds
Copy the current immutable object with elements that replace the content ofcredentialIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCredentialIds
Copy the current immutable object with elements that replace the content ofcredentialIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of credentialIds elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableEscrowFinishthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:account,transactionType,fee,sequence,ticketSequence,accountTransactionId,lastLedgerSequence,memos,signers,sourceTag,signingPublicKey,transactionSignature,networkId,delegate,unknownFields,flags,owner,offerSequence,condition,conditionRawValue,fulfillment,fulfillmentRawValue,credentialIds. -
toString
Prints the immutable valueEscrowFinishwith attribute values. -
copyOf
Creates an immutable copy of aEscrowFinishvalue. 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 EscrowFinish instance
-
builder
Creates a builder forImmutableEscrowFinish.ImmutableEscrowFinish.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // requiredaccount.transactionType(org.xrpl.xrpl4j.model.transactions.TransactionType) // optionaltransactionType.fee(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // requiredfee.sequence(com.google.common.primitives.UnsignedInteger) // optionalsequence.ticketSequence(com.google.common.primitives.UnsignedInteger) // optionalticketSequence.accountTransactionId(Hash256) // optionalaccountTransactionId.lastLedgerSequence(com.google.common.primitives.UnsignedInteger) // optionallastLedgerSequence.addMemos|addAllMemos(org.xrpl.xrpl4j.model.transactions.MemoWrapper) //memoselements .addSigners|addAllSigners(org.xrpl.xrpl4j.model.transactions.SignerWrapper) //signerselements .sourceTag(com.google.common.primitives.UnsignedInteger) // optionalsourceTag.signingPublicKey(org.xrpl.xrpl4j.crypto.keys.PublicKey) // optionalsigningPublicKey.transactionSignature(org.xrpl.xrpl4j.crypto.signing.Signature) // optionaltransactionSignature.networkId(NetworkId) // optionalnetworkId.delegate(Address) // optionaldelegate.putUnknownFields|putAllUnknownFields(String => Object) //unknownFieldsmappings .flags(org.xrpl.xrpl4j.model.flags.TransactionFlags) // optionalflags.owner(org.xrpl.xrpl4j.model.transactions.Address) // requiredowner.offerSequence(com.google.common.primitives.UnsignedInteger) // requiredofferSequence.condition(com.ripple.cryptoconditions.Condition) // optionalcondition.conditionRawValue(String) // optionalconditionRawValue.fulfillment(com.ripple.cryptoconditions.Fulfillment<?>) // optionalfulfillment.fulfillmentRawValue(String) // optionalfulfillmentRawValue.addCredentialIds|addAllCredentialIds(Hash256) //credentialIdselements .build();- Returns:
- A new ImmutableEscrowFinish builder
-