Class ImmutableAccountSet
- All Implemented Interfaces:
AccountSet,Transaction
AccountSet.
Use the builder to create immutable instances:
ImmutableAccountSet.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAccountSet.Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.transactions.AccountSet
AccountSet.AccountSetFlag -
Field Summary
Fields 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.static ImmutableAccountSet.Builderbuilder()Creates a builder forImmutableAccountSet.Unique identifier of a flag to disable for this account.Optional<com.google.common.primitives.UnsignedInteger> A flag to disable for this account, as anUnsignedInteger.static ImmutableAccountSetcopyOf(AccountSet instance) Creates an immutable copy of aAccountSetvalue.delegate()The delegate account that is sending the transaction on behalf of theaccount().domain()The hex string of the lowercase ASCII of the domain for the account.Hash of an email address to be used for generating an avatar image.booleanThis instance is equal to all instances ofImmutableAccountSetthat 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 ofAccountSetTransactionFlagss for thisAccountSet.inthashCode()Computes a hash code from attributes:account,transactionType,fee,sequence,ticketSequence,accountTransactionId,lastLedgerSequence,memos,signers,sourceTag,signingPublicKey,transactionSignature,networkId,delegate,unknownFields,flags,clearFlag,clearFlagRawValue,setFlag,setFlagRawValue,domain,emailHash,messageKey,transferRate,tickSize,mintAccount,walletLocator,walletSize.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.Hexadecimal encoded public key for sending encrypted messages to this account.Sets an alternate account that is allowed to mint NFTokens on this account's behalf using NFTokenMint's `Issuer` field.com.google.common.primitives.UnsignedIntegersequence()The sequence number of the account submitting theTransaction.setFlag()Unique identifier of a flag to enable for this account.Optional<com.google.common.primitives.UnsignedInteger> A flag to disable for this account, as anUnsignedInteger.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.Optional<com.google.common.primitives.UnsignedInteger> tickSize()Tick size to use for offers involving a currency issued by this address.toString()Prints the immutable valueAccountSetwith attribute values.The signature that verifies this transaction as originating from the account it says it is from.The type of transaction.Optional<com.google.common.primitives.UnsignedInteger> The fee to charge when users transfer this account's issued currencies, represented as billionths of a unit.An arbitrary 256-bit value.Optional<com.google.common.primitives.UnsignedInteger> Not used.final ImmutableAccountSetwithAccount(Address value) Copy the current immutable object by setting a value for theaccountattribute.final ImmutableAccountSetwithAccountTransactionId(Optional<? extends Hash256> optional) Copy the current immutable object by setting an optional value for theaccountTransactionIdattribute.final ImmutableAccountSetwithAccountTransactionId(Hash256 value) Copy the current immutable object by setting a present value for the optionalaccountTransactionIdattribute.final ImmutableAccountSetwithClearFlag(Optional<? extends AccountSet.AccountSetFlag> optional) Copy the current immutable object by setting an optional value for theclearFlagattribute.final ImmutableAccountSetCopy the current immutable object by setting a present value for the optionalclearFlagattribute.final ImmutableAccountSetwithClearFlagRawValue(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalclearFlagRawValueattribute.final ImmutableAccountSetwithClearFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for theclearFlagRawValueattribute.final ImmutableAccountSetwithDelegate(Optional<? extends Address> optional) Copy the current immutable object by setting an optional value for thedelegateattribute.final ImmutableAccountSetwithDelegate(Address value) Copy the current immutable object by setting a present value for the optionaldelegateattribute.final ImmutableAccountSetwithDomain(String value) Copy the current immutable object by setting a present value for the optionaldomainattribute.final ImmutableAccountSetwithDomain(Optional<String> optional) Copy the current immutable object by setting an optional value for thedomainattribute.final ImmutableAccountSetwithEmailHash(String value) Copy the current immutable object by setting a present value for the optionalemailHashattribute.final ImmutableAccountSetwithEmailHash(Optional<String> optional) Copy the current immutable object by setting an optional value for theemailHashattribute.final ImmutableAccountSetwithFee(XrpCurrencyAmount value) Copy the current immutable object by setting a value for thefeeattribute.final ImmutableAccountSetCopy the current immutable object by setting a value for theflagsattribute.final ImmutableAccountSetwithLastLedgerSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallastLedgerSequenceattribute.final ImmutableAccountSetwithLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thelastLedgerSequenceattribute.final ImmutableAccountSetwithMemos(Iterable<? extends MemoWrapper> elements) Copy the current immutable object with elements that replace the content ofmemos.final ImmutableAccountSetwithMemos(MemoWrapper... elements) Copy the current immutable object with elements that replace the content ofmemos.final ImmutableAccountSetwithMessageKey(String value) Copy the current immutable object by setting a present value for the optionalmessageKeyattribute.final ImmutableAccountSetwithMessageKey(Optional<String> optional) Copy the current immutable object by setting an optional value for themessageKeyattribute.final ImmutableAccountSetwithMintAccount(Optional<? extends Address> optional) Copy the current immutable object by setting an optional value for themintAccountattribute.final ImmutableAccountSetwithMintAccount(Address value) Copy the current immutable object by setting a present value for the optionalmintAccountattribute.final ImmutableAccountSetwithNetworkId(Optional<? extends NetworkId> optional) Copy the current immutable object by setting an optional value for thenetworkIdattribute.final ImmutableAccountSetwithNetworkId(NetworkId value) Copy the current immutable object by setting a present value for the optionalnetworkIdattribute.final ImmutableAccountSetwithSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for thesequenceattribute.final ImmutableAccountSetwithSetFlag(Optional<? extends AccountSet.AccountSetFlag> optional) Copy the current immutable object by setting an optional value for thesetFlagattribute.final ImmutableAccountSetCopy the current immutable object by setting a present value for the optionalsetFlagattribute.final ImmutableAccountSetwithSetFlagRawValue(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalsetFlagRawValueattribute.final ImmutableAccountSetwithSetFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thesetFlagRawValueattribute.final ImmutableAccountSetwithSigners(Iterable<? extends SignerWrapper> elements) Copy the current immutable object with elements that replace the content ofsigners.final ImmutableAccountSetwithSigners(SignerWrapper... elements) Copy the current immutable object with elements that replace the content ofsigners.final ImmutableAccountSetwithSigningPublicKey(PublicKey value) Copy the current immutable object by setting a value for thesigningPublicKeyattribute.final ImmutableAccountSetwithSourceTag(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalsourceTagattribute.final ImmutableAccountSetwithSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thesourceTagattribute.final ImmutableAccountSetwithTicketSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalticketSequenceattribute.final ImmutableAccountSetwithTicketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for theticketSequenceattribute.final ImmutableAccountSetwithTickSize(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionaltickSizeattribute.final ImmutableAccountSetwithTickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thetickSizeattribute.final ImmutableAccountSetwithTransactionSignature(Optional<? extends Signature> optional) Copy the current immutable object by setting an optional value for thetransactionSignatureattribute.final ImmutableAccountSetCopy the current immutable object by setting a present value for the optionaltransactionSignatureattribute.final ImmutableAccountSetCopy the current immutable object by setting a value for thetransactionTypeattribute.final ImmutableAccountSetwithTransferRate(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionaltransferRateattribute.final ImmutableAccountSetwithTransferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thetransferRateattribute.final ImmutableAccountSetwithUnknownFields(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theunknownFieldsmap with the specified map.final ImmutableAccountSetwithWalletLocator(String value) Copy the current immutable object by setting a present value for the optionalwalletLocatorattribute.final ImmutableAccountSetwithWalletLocator(Optional<String> optional) Copy the current immutable object by setting an optional value for thewalletLocatorattribute.final ImmutableAccountSetwithWalletSize(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalwalletSizeattribute.final ImmutableAccountSetwithWalletSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thewalletSizeattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xrpl.xrpl4j.model.transactions.AccountSet
checkEmailHashLength, checkTickSize, checkTransferRate, normalizeClearFlag, normalizeSetFlagMethods 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 ofAccountSetTransactionFlagss for thisAccountSet. Defaults toAccountSetTransactionFlags.empty().- Specified by:
flagsin interfaceAccountSet- Returns:
- An
AccountSetTransactionFlags.
-
clearFlag
Unique identifier of a flag to disable for this account.If this field is empty, developers should check if
clearFlagRawValue()is also empty. IfclearFlagRawValue()is present, it means that theClearFlagfield of the transaction was not a validAccountSet.AccountSetFlagbut was still present in a validated transaction on ledger.Because the preferred way of setting account flags is with
AccountSet.AccountSetFlags, this field should not be set in conjunction with theAccountSet.flags()field.- Specified by:
clearFlagin interfaceAccountSet- Returns:
- An
Optionalof typeAccountSet.AccountSetFlagrepresenting the flag to disable on this account.
-
clearFlagRawValue
A flag to disable for this account, as anUnsignedInteger.Developers should prefer setting
clearFlag()and leaving this field empty when constructing a newAccountSet. This field is used to serialize and deserialize the"ClearFlag"field in JSON, as someAccountSettransactions on the XRPL set the "ClearFlag" field to a number that is not recognized as an asf flag by rippled. Without this field, xrpl4j would fail to deserialize those transactions, asAccountSet.AccountSetFlagdoes not support arbitrary integer values.Additionally, using this field as the source of truth for JSON serialization/deserialization rather than
clearFlag()allows developers to recompute the hash of a transaction that was deserialized from a rippled RPC/WS result accurately. An alternative to this field would be to add an enum variant toAccountSet.AccountSetFlagfor unknown values, but binary serializing anAccountSetthat was constructed by deserializing JSON would result in a different binary blob than what exists on ledger.- Specified by:
clearFlagRawValuein interfaceAccountSet- Returns:
- An
OptionalUnsignedInteger.
-
setFlag
Unique identifier of a flag to enable for this account.If this field is empty, developers should check if
setFlagRawValue()is also empty. IfsetFlagRawValue()is present, it means that theClearFlagfield of the transaction was not a validAccountSet.AccountSetFlagbut was still present in a validated transaction on ledger.Because the preferred way of setting account flags is with
AccountSet.AccountSetFlags, this field should not be set in conjunction with theAccountSet.flags()field.- Specified by:
setFlagin interfaceAccountSet- Returns:
- An
Optionalof typeAccountSet.AccountSetFlagrepresenting the flag to enable on this account.
-
setFlagRawValue
A flag to disable for this account, as anUnsignedInteger.Developers should prefer setting
setFlag()and leaving this field empty when constructing a newAccountSet. This field is used to serialize and deserialize the"ClearFlag"field in JSON, as someAccountSettransactions on the XRPL set the "ClearFlag" field to a number that is not recognized as an asf flag by rippled. Without this field, xrpl4j would fail to deserialize those transactions, asAccountSet.AccountSetFlagdoes not support arbitrary integer values.Additionally, using this field as the source of truth for JSON serialization/deserialization rather than
setFlag()allows developers to recompute the hash of a transaction that was deserialized from a rippled RPC/WS result accurately. An alternative to this field would be to add an enum variant toAccountSet.AccountSetFlagfor unknown values, but binary serializing anAccountSetthat was constructed by deserializing JSON would result in a different binary blob than what exists on ledger.- Specified by:
setFlagRawValuein interfaceAccountSet- Returns:
- An
OptionalUnsignedInteger
-
domain
The hex string of the lowercase ASCII of the domain for the account. For example, the domain example.com would be represented as "6578616D706C652E636F6D".To remove the Domain field from an account, send an
AccountSetwith this domain field set to an empty string.- Specified by:
domainin interfaceAccountSet- Returns:
- An
Optionalof typeStringcontaining the domain.
-
emailHash
Hash of an email address to be used for generating an avatar image. Conventionally, clients use Gravatar to display this image.- Specified by:
emailHashin interfaceAccountSet- Returns:
- An
Optionalof typeStringcontaining the hash of the email.
-
messageKey
Hexadecimal encoded public key for sending encrypted messages to this account.- Specified by:
messageKeyin interfaceAccountSet- Returns:
- An
Optionalof typeStringcontaining the messaging public key.
-
transferRate
The fee to charge when users transfer this account's issued currencies, represented as billionths of a unit. Cannot be more than 2000000000 or less than 1000000000, except for the special case 0 meaning no fee.- Specified by:
transferRatein interfaceAccountSet- Returns:
- An
Optionalof typeUnsignedIntegerrepresenting the transfer rate.
-
tickSize
Tick size to use for offers involving a currency issued by this address. The exchange rates of those offers is rounded to this many significant digits. Valid values are 3 to 15 inclusive, or 0 to disable.- Specified by:
tickSizein interfaceAccountSet- Returns:
- An
Optionalof typeUnsignedIntegerrepresenting the tick size.
-
mintAccount
Sets an alternate account that is allowed to mint NFTokens on this account's behalf using NFTokenMint's `Issuer` field.- Specified by:
mintAccountin interfaceAccountSet- Returns:
- An
Optionalfield of typeAddress.
-
walletLocator
An arbitrary 256-bit value. If specified, the value is stored as part of the account but has no inherent meaning or requirements.- Specified by:
walletLocatorin interfaceAccountSet- Returns:
- The 256-bit value as a hex encoded
String.
-
walletSize
Not used. This field is valid in AccountSet transactions but does nothing.- Specified by:
walletSizein interfaceAccountSet- Returns:
- An optionally present
UnsignedInteger.
-
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 ImmutableAccountSet 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 ImmutableAccountSet 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 ImmutableAccountSet 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 ImmutableAccountSet 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
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 ImmutableAccountSet 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
-
withClearFlag
Copy the current immutable object by setting a present value for the optionalclearFlagattribute.- Parameters:
value- The value for clearFlag- Returns:
- A modified copy of
thisobject
-
withClearFlag
public final ImmutableAccountSet withClearFlag(Optional<? extends AccountSet.AccountSetFlag> optional) Copy the current immutable object by setting an optional value for theclearFlagattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for clearFlag- Returns:
- A modified copy of
thisobject
-
withClearFlagRawValue
public final ImmutableAccountSet withClearFlagRawValue(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalclearFlagRawValueattribute.- Parameters:
value- The value for clearFlagRawValue- Returns:
- A modified copy of
thisobject
-
withClearFlagRawValue
public final ImmutableAccountSet withClearFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for theclearFlagRawValueattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for clearFlagRawValue- Returns:
- A modified copy of
thisobject
-
withSetFlag
Copy the current immutable object by setting a present value for the optionalsetFlagattribute.- Parameters:
value- The value for setFlag- Returns:
- A modified copy of
thisobject
-
withSetFlag
public final ImmutableAccountSet withSetFlag(Optional<? extends AccountSet.AccountSetFlag> optional) Copy the current immutable object by setting an optional value for thesetFlagattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for setFlag- Returns:
- A modified copy of
thisobject
-
withSetFlagRawValue
public final ImmutableAccountSet withSetFlagRawValue(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionalsetFlagRawValueattribute.- Parameters:
value- The value for setFlagRawValue- Returns:
- A modified copy of
thisobject
-
withSetFlagRawValue
public final ImmutableAccountSet withSetFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thesetFlagRawValueattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for setFlagRawValue- Returns:
- A modified copy of
thisobject
-
withDomain
Copy the current immutable object by setting a present value for the optionaldomainattribute.- Parameters:
value- The value for domain- Returns:
- A modified copy of
thisobject
-
withDomain
Copy the current immutable object by setting an optional value for thedomainattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for domain- Returns:
- A modified copy of
thisobject
-
withEmailHash
Copy the current immutable object by setting a present value for the optionalemailHashattribute.- Parameters:
value- The value for emailHash- Returns:
- A modified copy of
thisobject
-
withEmailHash
Copy the current immutable object by setting an optional value for theemailHashattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for emailHash- Returns:
- A modified copy of
thisobject
-
withMessageKey
Copy the current immutable object by setting a present value for the optionalmessageKeyattribute.- Parameters:
value- The value for messageKey- Returns:
- A modified copy of
thisobject
-
withMessageKey
Copy the current immutable object by setting an optional value for themessageKeyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for messageKey- Returns:
- A modified copy of
thisobject
-
withTransferRate
public final ImmutableAccountSet withTransferRate(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionaltransferRateattribute.- Parameters:
value- The value for transferRate- Returns:
- A modified copy of
thisobject
-
withTransferRate
public final ImmutableAccountSet withTransferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thetransferRateattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for transferRate- Returns:
- A modified copy of
thisobject
-
withTickSize
Copy the current immutable object by setting a present value for the optionaltickSizeattribute.- Parameters:
value- The value for tickSize- Returns:
- A modified copy of
thisobject
-
withTickSize
public final ImmutableAccountSet withTickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thetickSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for tickSize- Returns:
- A modified copy of
thisobject
-
withMintAccount
Copy the current immutable object by setting a present value for the optionalmintAccountattribute.- Parameters:
value- The value for mintAccount- Returns:
- A modified copy of
thisobject
-
withMintAccount
Copy the current immutable object by setting an optional value for themintAccountattribute. 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 mintAccount- Returns:
- A modified copy of
thisobject
-
withWalletLocator
Copy the current immutable object by setting a present value for the optionalwalletLocatorattribute.- Parameters:
value- The value for walletLocator- Returns:
- A modified copy of
thisobject
-
withWalletLocator
Copy the current immutable object by setting an optional value for thewalletLocatorattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for walletLocator- Returns:
- A modified copy of
thisobject
-
withWalletSize
Copy the current immutable object by setting a present value for the optionalwalletSizeattribute.- Parameters:
value- The value for walletSize- Returns:
- A modified copy of
thisobject
-
withWalletSize
public final ImmutableAccountSet withWalletSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thewalletSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for walletSize- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableAccountSetthat 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,clearFlag,clearFlagRawValue,setFlag,setFlagRawValue,domain,emailHash,messageKey,transferRate,tickSize,mintAccount,walletLocator,walletSize. -
toString
Prints the immutable valueAccountSetwith attribute values. -
copyOf
Creates an immutable copy of aAccountSetvalue. 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 AccountSet instance
-
builder
Creates a builder forImmutableAccountSet.ImmutableAccountSet.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.AccountSetTransactionFlags) // optionalflags.clearFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optionalclearFlag.clearFlagRawValue(com.google.common.primitives.UnsignedInteger) // optionalclearFlagRawValue.setFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optionalsetFlag.setFlagRawValue(com.google.common.primitives.UnsignedInteger) // optionalsetFlagRawValue.domain(String) // optionaldomain.emailHash(String) // optionalemailHash.messageKey(String) // optionalmessageKey.transferRate(com.google.common.primitives.UnsignedInteger) // optionaltransferRate.tickSize(com.google.common.primitives.UnsignedInteger) // optionaltickSize.mintAccount(Address) // optionalmintAccount.walletLocator(String) // optionalwalletLocator.walletSize(com.google.common.primitives.UnsignedInteger) // optionalwalletSize.build();- Returns:
- A new ImmutableAccountSet builder
-