Class ImmutableAccountInfoRequestParams
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountInfoRequestParams
-
- All Implemented Interfaces:
AccountInfoRequestParams
,XrplRequestParams
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountInfoRequestParams extends Object implements AccountInfoRequestParams
Immutable implementation ofAccountInfoRequestParams
.Use the builder to create immutable instances:
ImmutableAccountInfoRequestParams.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAccountInfoRequestParams.Builder
Builds instances of typeImmutableAccountInfoRequestParams
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
account()
A uniqueAddress
for the account.static ImmutableAccountInfoRequestParams.Builder
builder()
Creates a builder forImmutableAccountInfoRequestParams
.static ImmutableAccountInfoRequestParams
copyOf(AccountInfoRequestParams instance)
Creates an immutable copy of aAccountInfoRequestParams
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAccountInfoRequestParams
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:account
,ledgerSpecifier
,strict
,queue
,signerLists
.Optional<Hash256>
ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.LedgerIndex
ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.LedgerSpecifier
ledgerSpecifier()
Specifies the ledger version to request.boolean
queue()
If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account.boolean
signerLists()
If true, and the MultiSign amendment is enabled, also returns anySignerListObject
s associated with this account.boolean
strict()
String
toString()
Prints the immutable valueAccountInfoRequestParams
with attribute values.ImmutableAccountInfoRequestParams
withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute.ImmutableAccountInfoRequestParams
withLedgerHash(Optional<? extends Hash256> optional)
Deprecated.ImmutableAccountInfoRequestParams
withLedgerHash(Hash256 value)
Deprecated.ImmutableAccountInfoRequestParams
withLedgerIndex(LedgerIndex value)
Deprecated.ImmutableAccountInfoRequestParams
withLedgerSpecifier(LedgerSpecifier value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute.ImmutableAccountInfoRequestParams
withQueue(boolean value)
Copy the current immutable object by setting a value for thequeue
attribute.ImmutableAccountInfoRequestParams
withSignerLists(boolean value)
Copy the current immutable object by setting a value for thesignerLists
attribute.
-
-
-
Method Detail
-
account
public Address account()
A uniqueAddress
for the account.- Specified by:
account
in interfaceAccountInfoRequestParams
- Returns:
- The
Address
of the account.
-
ledgerHash
@Deprecated public Optional<Hash256> ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.A 20-byte hex string for the ledger version to use.- Specified by:
ledgerHash
in interfaceAccountInfoRequestParams
- Returns:
- An optionally-present
Hash256
.
-
ledgerIndex
@Deprecated @Nullable public LedgerIndex ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.- Specified by:
ledgerIndex
in interfaceAccountInfoRequestParams
- Returns:
- A
LedgerIndex
. Defaults toLedgerIndex.CURRENT
.
-
ledgerSpecifier
public LedgerSpecifier ledgerSpecifier()
Specifies the ledger version to request. A ledger version can be specified by ledger hash, numerical ledger index, or a shortcut value.- Specified by:
ledgerSpecifier
in interfaceAccountInfoRequestParams
- Returns:
- A
LedgerSpecifier
specifying the ledger version to request.
-
strict
public boolean strict()
A boolean indicating if theaccount()
field only accepts a public key or XRP LedgerAddress
. Always true, asaccount()
is always anAddress
.- Specified by:
strict
in interfaceAccountInfoRequestParams
- Returns:
true
if the account field only accepts a public key or XRP Ledger address, otherwisefalse
. Defaults totrue
.
-
queue
public boolean queue()
If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger.- Specified by:
queue
in interfaceAccountInfoRequestParams
- Returns:
true
if queue transactions should be returned in the response,false
if not. Defaults tofalse
.
-
signerLists
public boolean signerLists()
If true, and the MultiSign amendment is enabled, also returns anySignerListObject
s associated with this account.- Specified by:
signerLists
in interfaceAccountInfoRequestParams
- Returns:
true
if signer lists should be returns,false
if not. Defaults totrue
.
-
withAccount
public final ImmutableAccountInfoRequestParams 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
-
withLedgerHash
@Deprecated public final ImmutableAccountInfoRequestParams withLedgerHash(Hash256 value)
Deprecated.Copy the current immutable object by setting a present value for the optionalledgerHash
attribute.- Parameters:
value
- The value for ledgerHash- Returns:
- A modified copy of
this
object
-
withLedgerHash
@Deprecated public final ImmutableAccountInfoRequestParams withLedgerHash(Optional<? extends Hash256> optional)
Deprecated.Copy the current immutable object by setting an optional value for theledgerHash
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 ledgerHash- Returns:
- A modified copy of
this
object
-
withLedgerIndex
@Deprecated public final ImmutableAccountInfoRequestParams withLedgerIndex(@Nullable LedgerIndex value)
Deprecated.Copy the current immutable object by setting a value for theledgerIndex
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndex (can benull
)- Returns:
- A modified copy of the
this
object
-
withLedgerSpecifier
public final ImmutableAccountInfoRequestParams withLedgerSpecifier(LedgerSpecifier value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerSpecifier- Returns:
- A modified copy of the
this
object
-
withQueue
public final ImmutableAccountInfoRequestParams withQueue(boolean value)
Copy the current immutable object by setting a value for thequeue
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for queue- Returns:
- A modified copy of the
this
object
-
withSignerLists
public final ImmutableAccountInfoRequestParams withSignerLists(boolean value)
Copy the current immutable object by setting a value for thesignerLists
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signerLists- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAccountInfoRequestParams
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:account
,ledgerSpecifier
,strict
,queue
,signerLists
.
-
toString
public String toString()
Prints the immutable valueAccountInfoRequestParams
with attribute values.
-
copyOf
public static ImmutableAccountInfoRequestParams copyOf(AccountInfoRequestParams instance)
Creates an immutable copy of aAccountInfoRequestParams
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 AccountInfoRequestParams instance
-
builder
public static ImmutableAccountInfoRequestParams.Builder builder()
Creates a builder forImmutableAccountInfoRequestParams
.ImmutableAccountInfoRequestParams.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // required
account
.ledgerHash(org.xrpl.xrpl4j.model.transactions.Hash256) // optionalledgerHash
.ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex | null) // nullableledgerIndex
.ledgerSpecifier(org.xrpl.xrpl4j.model.client.common.LedgerSpecifier) // optionalledgerSpecifier
.queue(boolean) // optionalqueue
.signerLists(boolean) // optionalsignerLists
.build();- Returns:
- A new ImmutableAccountInfoRequestParams builder
-
-