Class ImmutableAccountSet
- java.lang.Object
-
- org.xrpl.xrpl4j.model.transactions.ImmutableAccountSet
-
- All Implemented Interfaces:
AccountSet
,Transaction
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountSet extends Object implements AccountSet
Immutable implementation ofAccountSet
.Use the builder to create immutable instances:
ImmutableAccountSet.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAccountSet.Builder
Builds 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
RIPPLE_EPOCH, typeMap
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
account()
The uniqueAddress
of the account that initiated this transaction.Optional<Hash256>
accountTransactionId()
Hash value identifying another transaction.static ImmutableAccountSet.Builder
builder()
Creates a builder forImmutableAccountSet
.Optional<AccountSet.AccountSetFlag>
clearFlag()
Unique identifier of a flag to disable for this account.Optional<com.google.common.primitives.UnsignedLong>
closeDate()
Deprecated.This field will be removed in favor ofTransactionResult.closeDate()
;static ImmutableAccountSet
copyOf(AccountSet instance)
Creates an immutable copy of aAccountSet
value.Optional<String>
domain()
The hex string of the lowercase ASCII of the domain for the account.Optional<String>
emailHash()
Hash of an email address to be used for generating an avatar image.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAccountSet
that have equal attribute values.XrpCurrencyAmount
fee()
TheString
representation of an integer amount of XRP, in drops, to be destroyed as a cost for distributing this Payment transaction to the network.Flags.TransactionFlags
flags()
Set ofFlags.TransactionFlags
s for thisAccountDelete
, which only allows thetfFullyCanonicalSig
flag.Optional<Hash256>
hash()
Deprecated.This field will be removed in a future release.int
hashCode()
Computes a hash code from attributes:account
,fee
,sequence
,accountTransactionId
,lastLedgerSequence
,memos
,signers
,sourceTag
,signingPublicKey
,transactionSignature
,closeDate
,hash
,ledgerIndex
,flags
,clearFlag
,setFlag
,domain
,emailHash
,messageKey
,transferRate
,tickSize
.Optional<com.google.common.primitives.UnsignedInteger>
lastLedgerSequence()
Highest ledger index this transaction can appear in.Optional<LedgerIndex>
ledgerIndex()
Deprecated.This field will be removed in a future release.com.google.common.collect.ImmutableList<MemoWrapper>
memos()
Additional arbitrary information used to identify thisTransaction
.Optional<String>
messageKey()
Hexadecimal encoded public key for sending encrypted messages to this account.com.google.common.primitives.UnsignedInteger
sequence()
The sequence number of the account submitting theTransaction
.Optional<AccountSet.AccountSetFlag>
setFlag()
Unique identifier of a flag to enable for this account.com.google.common.collect.ImmutableList<SignerWrapper>
signers()
Array ofSignerWrapper
s that represent a multi-signature which authorizes thisTransaction
.Optional<String>
signingPublicKey()
Hex representation of the public key that corresponds to the private key used to sign this transaction.Optional<com.google.common.primitives.UnsignedInteger>
sourceTag()
ArbitraryUnsignedInteger
used to identify the reason for thisTransaction
, or a sender on whose behalf thisTransaction
is made.Optional<com.google.common.primitives.UnsignedInteger>
tickSize()
Tick size to use for offers involving a currency issued by this address.String
toString()
Prints the immutable valueAccountSet
with attribute values.Optional<String>
transactionSignature()
The signature that verifies this transaction as originating from the account it says it is from.Optional<com.google.common.primitives.UnsignedInteger>
transferRate()
The fee to charge when users transfer this account's issued currencies, represented as billionths of a unit.ImmutableAccountSet
withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute.ImmutableAccountSet
withAccountTransactionId(Optional<? extends Hash256> optional)
Copy the current immutable object by setting an optional value for theaccountTransactionId
attribute.ImmutableAccountSet
withAccountTransactionId(Hash256 value)
Copy the current immutable object by setting a present value for the optionalaccountTransactionId
attribute.ImmutableAccountSet
withClearFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
Copy the current immutable object by setting an optional value for theclearFlag
attribute.ImmutableAccountSet
withClearFlag(AccountSet.AccountSetFlag value)
Copy the current immutable object by setting a present value for the optionalclearFlag
attribute.ImmutableAccountSet
withCloseDate(com.google.common.primitives.UnsignedLong value)
Deprecated.ImmutableAccountSet
withCloseDate(Optional<? extends com.google.common.primitives.UnsignedLong> optional)
Deprecated.ImmutableAccountSet
withDomain(String value)
Copy the current immutable object by setting a present value for the optionaldomain
attribute.ImmutableAccountSet
withDomain(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedomain
attribute.ImmutableAccountSet
withEmailHash(String value)
Copy the current immutable object by setting a present value for the optionalemailHash
attribute.ImmutableAccountSet
withEmailHash(Optional<String> optional)
Copy the current immutable object by setting an optional value for theemailHash
attribute.ImmutableAccountSet
withFee(XrpCurrencyAmount value)
Copy the current immutable object by setting a value for thefee
attribute.ImmutableAccountSet
withHash(Optional<? extends Hash256> optional)
Deprecated.ImmutableAccountSet
withHash(Hash256 value)
Deprecated.ImmutableAccountSet
withLastLedgerSequence(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallastLedgerSequence
attribute.ImmutableAccountSet
withLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelastLedgerSequence
attribute.ImmutableAccountSet
withLedgerIndex(Optional<? extends LedgerIndex> optional)
Deprecated.ImmutableAccountSet
withLedgerIndex(LedgerIndex value)
Deprecated.ImmutableAccountSet
withMemos(Iterable<? extends MemoWrapper> elements)
Copy the current immutable object with elements that replace the content ofmemos
.ImmutableAccountSet
withMemos(MemoWrapper... elements)
Copy the current immutable object with elements that replace the content ofmemos
.ImmutableAccountSet
withMessageKey(String value)
Copy the current immutable object by setting a present value for the optionalmessageKey
attribute.ImmutableAccountSet
withMessageKey(Optional<String> optional)
Copy the current immutable object by setting an optional value for themessageKey
attribute.ImmutableAccountSet
withSequence(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a value for thesequence
attribute.ImmutableAccountSet
withSetFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
Copy the current immutable object by setting an optional value for thesetFlag
attribute.ImmutableAccountSet
withSetFlag(AccountSet.AccountSetFlag value)
Copy the current immutable object by setting a present value for the optionalsetFlag
attribute.ImmutableAccountSet
withSigners(Iterable<? extends SignerWrapper> elements)
Copy the current immutable object with elements that replace the content ofsigners
.ImmutableAccountSet
withSigners(SignerWrapper... elements)
Copy the current immutable object with elements that replace the content ofsigners
.ImmutableAccountSet
withSigningPublicKey(String value)
Copy the current immutable object by setting a present value for the optionalsigningPublicKey
attribute.ImmutableAccountSet
withSigningPublicKey(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesigningPublicKey
attribute.ImmutableAccountSet
withSourceTag(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionalsourceTag
attribute.ImmutableAccountSet
withSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thesourceTag
attribute.ImmutableAccountSet
withTickSize(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionaltickSize
attribute.ImmutableAccountSet
withTickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thetickSize
attribute.ImmutableAccountSet
withTransactionSignature(String value)
Copy the current immutable object by setting a present value for the optionaltransactionSignature
attribute.ImmutableAccountSet
withTransactionSignature(Optional<String> optional)
Copy the current immutable object by setting an optional value for thetransactionSignature
attribute.ImmutableAccountSet
withTransferRate(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionaltransferRate
attribute.ImmutableAccountSet
withTransferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thetransferRate
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.xrpl.xrpl4j.model.transactions.AccountSet
checkEmailHashLength, checkTickSize, checkTransferRate
-
Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
closeDateHuman, transactionType
-
-
-
-
Method Detail
-
account
public Address account()
The uniqueAddress
of the account that initiated this transaction.- Specified by:
account
in interfaceTransaction
- Returns:
- The
Address
of the account submitting this transaction.
-
fee
public XrpCurrencyAmount fee()
TheString
representation 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:
fee
in interfaceTransaction
- Returns:
- An
XrpCurrencyAmount
representing the transaction cost. - See Also:
- "https://xrpl.org/transaction-common-fields.html#auto-fillable-fields"
-
sequence
public com.google.common.primitives.UnsignedInteger sequence()
The sequence number of the account submitting theTransaction
. ATransaction
is 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:
sequence
in interfaceTransaction
- Returns:
- An
UnsignedInteger
representing the sequence of the transaction. - See Also:
- "https://xrpl.org/transaction-common-fields.html#auto-fillable-fields"
-
accountTransactionId
public Optional<Hash256> accountTransactionId()
Hash value identifying another transaction. If provided, thisTransaction
is only valid if the sending account's previously-sent transaction matches the provided hash.- Specified by:
accountTransactionId
in interfaceTransaction
- Returns:
- An
Optional
of typeHash256
containing the account transaction ID.
-
lastLedgerSequence
public Optional<com.google.common.primitives.UnsignedInteger> 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:
lastLedgerSequence
in interfaceTransaction
- Returns:
- An
Optional
of typeUnsignedInteger
representing the last ledger sequence.
-
memos
public com.google.common.collect.ImmutableList<MemoWrapper> memos()
Additional arbitrary information used to identify thisTransaction
.- Specified by:
memos
in interfaceTransaction
- Returns:
- A
List
ofMemoWrapper
s.
-
signers
public com.google.common.collect.ImmutableList<SignerWrapper> signers()
Array ofSignerWrapper
s that represent a multi-signature which authorizes thisTransaction
.- Specified by:
signers
in interfaceTransaction
- Returns:
- A
List
ofSignerWrapper
s.
-
sourceTag
public Optional<com.google.common.primitives.UnsignedInteger> sourceTag()
ArbitraryUnsignedInteger
used to identify the reason for thisTransaction
, or a sender on whose behalf thisTransaction
is made.- Specified by:
sourceTag
in interfaceTransaction
- Returns:
- An
Optional
UnsignedInteger
representing the source account's tag.
-
signingPublicKey
public Optional<String> signingPublicKey()
Hex representation of the public key that corresponds to the private key used to sign this transaction. If an empty string, indicates a multi-signature is present in theTransaction.signers()
field instead.This field is automatically added when signing this
Transaction
.- Specified by:
signingPublicKey
in interfaceTransaction
- Returns:
- An
Optional
String
containing the public key of the account submitting the transaction.
-
transactionSignature
public Optional<String> 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:
transactionSignature
in interfaceTransaction
- Returns:
- An
Optional
String
containing the transaction signature.
-
closeDate
@Deprecated public Optional<com.google.common.primitives.UnsignedLong> closeDate()
Deprecated.This field will be removed in favor ofTransactionResult.closeDate()
;The approximate close time (using Ripple Epoch) of the ledger containing this transaction. This is an undocumented field.- Specified by:
closeDate
in interfaceTransaction
- Returns:
- An optionally-present
UnsignedLong
.
-
hash
@Deprecated public Optional<Hash256> hash()
Deprecated.This field will be removed in a future release. Instead, useAccountTransactionsTransaction.hash()
found inAccountTransactionsResult.transactions()
.The transaction hash of this transaction. Only present in responses toaccount_tx
rippled calls.- Specified by:
hash
in interfaceTransaction
- Returns:
- An optionally present
Hash256
containing the transaction hash.
-
ledgerIndex
@Deprecated public Optional<LedgerIndex> ledgerIndex()
Deprecated.This field will be removed in a future release. Instead, useAccountTransactionsTransaction.ledgerIndex()
found inAccountTransactionsResult.transactions()
.The index of the ledger that this transaction was included in. Only present in responses toaccount_tx
rippled calls.- Specified by:
ledgerIndex
in interfaceTransaction
- Returns:
- An optionally-present
LedgerIndex
.
-
flags
public Flags.TransactionFlags flags()
Set ofFlags.TransactionFlags
s for thisAccountDelete
, which only allows thetfFullyCanonicalSig
flag.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:
flags
in interfaceAccountSet
- Returns:
- Always
Flags.TransactionFlags
withtfFullyCanonicalSig
set.
-
clearFlag
public Optional<AccountSet.AccountSetFlag> clearFlag()
Unique identifier of a flag to disable for this account.Because the preferred way of setting account flags is with
AccountSet.AccountSetFlag
s, this field should not be set in conjunction with theAccountSet.flags()
field.- Specified by:
clearFlag
in interfaceAccountSet
- Returns:
- An
Optional
of typeAccountSet.AccountSetFlag
representing the flag to disable on this account.
-
setFlag
public Optional<AccountSet.AccountSetFlag> setFlag()
Unique identifier of a flag to enable for this account.Because the preferred way of setting account flags is with
AccountSet.AccountSetFlag
s, this field should not be set in conjunction with theAccountSet.flags()
field.- Specified by:
setFlag
in interfaceAccountSet
- Returns:
- An
Optional
of typeAccountSet.AccountSetFlag
representing the flag to enable on this account.
-
domain
public Optional<String> 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
AccountSet
with theAccountSet.domain()
set to an empty string.- Specified by:
domain
in interfaceAccountSet
- Returns:
- An
Optional
of typeString
containing the domain.
-
emailHash
public Optional<String> emailHash()
Hash of an email address to be used for generating an avatar image. Conventionally, clients use Gravatar to display this image.- Specified by:
emailHash
in interfaceAccountSet
- Returns:
- An
Optional
of typeString
containing the hash of the email.
-
messageKey
public Optional<String> messageKey()
Hexadecimal encoded public key for sending encrypted messages to this account.- Specified by:
messageKey
in interfaceAccountSet
- Returns:
- An
Optional
of typeString
containing the messaging public key.
-
transferRate
public Optional<com.google.common.primitives.UnsignedInteger> 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:
transferRate
in interfaceAccountSet
- Returns:
- An
Optional
of typeUnsignedInteger
representing the transfer rate.
-
tickSize
public Optional<com.google.common.primitives.UnsignedInteger> 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:
tickSize
in interfaceAccountSet
- Returns:
- An
Optional
of typeUnsignedInteger
representing the tick size.
-
withAccount
public final ImmutableAccountSet withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute. 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
this
object
-
withFee
public final ImmutableAccountSet withFee(XrpCurrencyAmount value)
Copy the current immutable object by setting a value for thefee
attribute. 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
this
object
-
withSequence
public final ImmutableAccountSet withSequence(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a value for thesequence
attribute. 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
this
object
-
withAccountTransactionId
public final ImmutableAccountSet withAccountTransactionId(Hash256 value)
Copy the current immutable object by setting a present value for the optionalaccountTransactionId
attribute.- Parameters:
value
- The value for accountTransactionId- Returns:
- A modified copy of
this
object
-
withAccountTransactionId
public final ImmutableAccountSet withAccountTransactionId(Optional<? extends Hash256> optional)
Copy the current immutable object by setting an optional value for theaccountTransactionId
attribute. 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
this
object
-
withLastLedgerSequence
public final ImmutableAccountSet withLastLedgerSequence(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallastLedgerSequence
attribute.- Parameters:
value
- The value for lastLedgerSequence- Returns:
- A modified copy of
this
object
-
withLastLedgerSequence
public final ImmutableAccountSet withLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelastLedgerSequence
attribute. 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
this
object
-
withMemos
public final ImmutableAccountSet withMemos(MemoWrapper... elements)
Copy the current immutable object with elements that replace the content ofmemos
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withMemos
public final ImmutableAccountSet withMemos(Iterable<? extends MemoWrapper> elements)
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
this
object
-
withSigners
public final ImmutableAccountSet withSigners(SignerWrapper... elements)
Copy the current immutable object with elements that replace the content ofsigners
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withSigners
public final ImmutableAccountSet withSigners(Iterable<? extends SignerWrapper> elements)
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
this
object
-
withSourceTag
public final ImmutableAccountSet withSourceTag(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionalsourceTag
attribute.- Parameters:
value
- The value for sourceTag- Returns:
- A modified copy of
this
object
-
withSourceTag
public final ImmutableAccountSet withSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thesourceTag
attribute. 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
this
object
-
withSigningPublicKey
public final ImmutableAccountSet withSigningPublicKey(String value)
Copy the current immutable object by setting a present value for the optionalsigningPublicKey
attribute.- Parameters:
value
- The value for signingPublicKey- Returns:
- A modified copy of
this
object
-
withSigningPublicKey
public final ImmutableAccountSet withSigningPublicKey(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesigningPublicKey
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for signingPublicKey- Returns:
- A modified copy of
this
object
-
withTransactionSignature
public final ImmutableAccountSet withTransactionSignature(String value)
Copy the current immutable object by setting a present value for the optionaltransactionSignature
attribute.- Parameters:
value
- The value for transactionSignature- Returns:
- A modified copy of
this
object
-
withTransactionSignature
public final ImmutableAccountSet withTransactionSignature(Optional<String> optional)
Copy the current immutable object by setting an optional value for thetransactionSignature
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for transactionSignature- Returns:
- A modified copy of
this
object
-
withCloseDate
@Deprecated public final ImmutableAccountSet withCloseDate(com.google.common.primitives.UnsignedLong value)
Deprecated.Copy the current immutable object by setting a present value for the optionalcloseDate
attribute.- Parameters:
value
- The value for closeDate- Returns:
- A modified copy of
this
object
-
withCloseDate
@Deprecated public final ImmutableAccountSet withCloseDate(Optional<? extends com.google.common.primitives.UnsignedLong> optional)
Deprecated.Copy the current immutable object by setting an optional value for thecloseDate
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for closeDate- Returns:
- A modified copy of
this
object
-
withHash
@Deprecated public final ImmutableAccountSet withHash(Hash256 value)
Deprecated.Copy the current immutable object by setting a present value for the optionalhash
attribute.- Parameters:
value
- The value for hash- Returns:
- A modified copy of
this
object
-
withHash
@Deprecated public final ImmutableAccountSet withHash(Optional<? extends Hash256> optional)
Deprecated.Copy the current immutable object by setting an optional value for thehash
attribute. 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 hash- Returns:
- A modified copy of
this
object
-
withLedgerIndex
@Deprecated public final ImmutableAccountSet withLedgerIndex(LedgerIndex value)
Deprecated.Copy the current immutable object by setting a present value for the optionalledgerIndex
attribute.- Parameters:
value
- The value for ledgerIndex- Returns:
- A modified copy of
this
object
-
withLedgerIndex
@Deprecated public final ImmutableAccountSet withLedgerIndex(Optional<? extends LedgerIndex> optional)
Deprecated.Copy the current immutable object by setting an optional value for theledgerIndex
attribute. 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 ledgerIndex- Returns:
- A modified copy of
this
object
-
withClearFlag
public final ImmutableAccountSet withClearFlag(AccountSet.AccountSetFlag value)
Copy the current immutable object by setting a present value for the optionalclearFlag
attribute.- Parameters:
value
- The value for clearFlag- Returns:
- A modified copy of
this
object
-
withClearFlag
public final ImmutableAccountSet withClearFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
Copy the current immutable object by setting an optional value for theclearFlag
attribute. 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
this
object
-
withSetFlag
public final ImmutableAccountSet withSetFlag(AccountSet.AccountSetFlag value)
Copy the current immutable object by setting a present value for the optionalsetFlag
attribute.- Parameters:
value
- The value for setFlag- Returns:
- A modified copy of
this
object
-
withSetFlag
public final ImmutableAccountSet withSetFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
Copy the current immutable object by setting an optional value for thesetFlag
attribute. 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
this
object
-
withDomain
public final ImmutableAccountSet withDomain(String value)
Copy the current immutable object by setting a present value for the optionaldomain
attribute.- Parameters:
value
- The value for domain- Returns:
- A modified copy of
this
object
-
withDomain
public final ImmutableAccountSet withDomain(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedomain
attribute. 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
this
object
-
withEmailHash
public final ImmutableAccountSet withEmailHash(String value)
Copy the current immutable object by setting a present value for the optionalemailHash
attribute.- Parameters:
value
- The value for emailHash- Returns:
- A modified copy of
this
object
-
withEmailHash
public final ImmutableAccountSet withEmailHash(Optional<String> optional)
Copy the current immutable object by setting an optional value for theemailHash
attribute. 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
this
object
-
withMessageKey
public final ImmutableAccountSet withMessageKey(String value)
Copy the current immutable object by setting a present value for the optionalmessageKey
attribute.- Parameters:
value
- The value for messageKey- Returns:
- A modified copy of
this
object
-
withMessageKey
public final ImmutableAccountSet withMessageKey(Optional<String> optional)
Copy the current immutable object by setting an optional value for themessageKey
attribute. 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
this
object
-
withTransferRate
public final ImmutableAccountSet withTransferRate(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionaltransferRate
attribute.- Parameters:
value
- The value for transferRate- Returns:
- A modified copy of
this
object
-
withTransferRate
public final ImmutableAccountSet withTransferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thetransferRate
attribute. 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
this
object
-
withTickSize
public final ImmutableAccountSet withTickSize(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionaltickSize
attribute.- Parameters:
value
- The value for tickSize- Returns:
- A modified copy of
this
object
-
withTickSize
public final ImmutableAccountSet withTickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thetickSize
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAccountSet
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:account
,fee
,sequence
,accountTransactionId
,lastLedgerSequence
,memos
,signers
,sourceTag
,signingPublicKey
,transactionSignature
,closeDate
,hash
,ledgerIndex
,flags
,clearFlag
,setFlag
,domain
,emailHash
,messageKey
,transferRate
,tickSize
.
-
toString
public String toString()
Prints the immutable valueAccountSet
with attribute values.
-
copyOf
public static ImmutableAccountSet copyOf(AccountSet instance)
Creates an immutable copy of aAccountSet
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 AccountSet instance
-
builder
public static ImmutableAccountSet.Builder builder()
Creates a builder forImmutableAccountSet
.ImmutableAccountSet.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // required
account
.fee(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // requiredfee
.sequence(com.google.common.primitives.UnsignedInteger) // requiredsequence
.accountTransactionId(Hash256) // optionalaccountTransactionId
.lastLedgerSequence(com.google.common.primitives.UnsignedInteger) // optionallastLedgerSequence
.addMemos|addAllMemos(org.xrpl.xrpl4j.model.transactions.MemoWrapper) //memos
elements .addSigners|addAllSigners(org.xrpl.xrpl4j.model.transactions.SignerWrapper) //signers
elements .sourceTag(com.google.common.primitives.UnsignedInteger) // optionalsourceTag
.signingPublicKey(String) // optionalsigningPublicKey
.transactionSignature(String) // optionaltransactionSignature
.closeDate(com.google.common.primitives.UnsignedLong) // optionalcloseDate
.hash(Hash256) // optionalhash
.ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optionalledgerIndex
.clearFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optionalclearFlag
.setFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optionalsetFlag
.domain(String) // optionaldomain
.emailHash(String) // optionalemailHash
.messageKey(String) // optionalmessageKey
.transferRate(com.google.common.primitives.UnsignedInteger) // optionaltransferRate
.tickSize(com.google.common.primitives.UnsignedInteger) // optionaltickSize
.build();- Returns:
- A new ImmutableAccountSet builder
-
-