Class ImmutableAccountTransactionsRequestParams
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountTransactionsRequestParams
-
- All Implemented Interfaces:
AccountTransactionsRequestParams
,XrplRequestParams
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountTransactionsRequestParams extends Object implements AccountTransactionsRequestParams
Immutable implementation ofAccountTransactionsRequestParams
.Use the builder to create immutable instances:
ImmutableAccountTransactionsRequestParams.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAccountTransactionsRequestParams.Builder
Builds instances of typeImmutableAccountTransactionsRequestParams
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
account()
A uniqueAddress
for the account.boolean
binary()
Whether or not to return transactions as JSON or binary-encoded hex strings.static ImmutableAccountTransactionsRequestParams.Builder
builder()
Creates a builder forImmutableAccountTransactionsRequestParams
.static ImmutableAccountTransactionsRequestParams
copyOf(AccountTransactionsRequestParams instance)
Creates an immutable copy of aAccountTransactionsRequestParams
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAccountTransactionsRequestParams
that have equal attribute values.boolean
forward()
If set totrue
, returns values indexed with the oldest ledger first.int
hashCode()
Computes a hash code from attributes:account
,ledgerIndexMinimum
,ledgerIndexMaximum
,ledgerSpecifier
,binary
,forward
,limit
,marker
.Optional<Hash256>
ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.Optional<LedgerIndex>
ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.Optional<LedgerIndex>
ledgerIndexMax()
Deprecated.ledger_index_max field should be specified byledgerIndexMaximum()
.LedgerIndexBound
ledgerIndexMaximum()
The most recent ledger to include transactions from.Optional<LedgerIndex>
ledgerIndexMin()
Deprecated.ledger_index_min field should be specified byledgerIndexMinimum()
LedgerIndexBound
ledgerIndexMinimum()
The earliest ledger to include transactions from.Optional<LedgerSpecifier>
ledgerSpecifier()
Specifies the ledger version to request.Optional<com.google.common.primitives.UnsignedInteger>
limit()
Limit the number of transactions to retrieve.Optional<Marker>
marker()
Value from a previous paginated response.String
toString()
Prints the immutable valueAccountTransactionsRequestParams
with attribute values.ImmutableAccountTransactionsRequestParams
withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute.ImmutableAccountTransactionsRequestParams
withForward(boolean value)
Copy the current immutable object by setting a value for theforward
attribute.ImmutableAccountTransactionsRequestParams
withLedgerHash(Optional<? extends Hash256> optional)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerHash(Hash256 value)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndex(Optional<? extends LedgerIndex> optional)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndex(LedgerIndex value)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndexMax(Optional<? extends LedgerIndex> optional)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndexMax(LedgerIndex value)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndexMaximum(LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMaximum
attribute.ImmutableAccountTransactionsRequestParams
withLedgerIndexMin(Optional<? extends LedgerIndex> optional)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndexMin(LedgerIndex value)
Deprecated.ImmutableAccountTransactionsRequestParams
withLedgerIndexMinimum(LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMinimum
attribute.ImmutableAccountTransactionsRequestParams
withLedgerSpecifier(Optional<LedgerSpecifier> value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute.ImmutableAccountTransactionsRequestParams
withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallimit
attribute.ImmutableAccountTransactionsRequestParams
withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelimit
attribute.ImmutableAccountTransactionsRequestParams
withMarker(Optional<? extends Marker> optional)
Copy the current immutable object by setting an optional value for themarker
attribute.ImmutableAccountTransactionsRequestParams
withMarker(Marker value)
Copy the current immutable object by setting a present value for the optionalmarker
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.xrpl.xrpl4j.model.client.accounts.AccountTransactionsRequestParams
emptyBoundedParametersIfSpecifierPresent, validateSpecifierNotCurrentOrClosed
-
-
-
-
Method Detail
-
account
public Address account()
A uniqueAddress
for the account.- Specified by:
account
in interfaceAccountTransactionsRequestParams
- Returns:
- The
Address
of the account.
-
ledgerIndexMin
@Deprecated public Optional<LedgerIndex> ledgerIndexMin()
Deprecated.ledger_index_min field should be specified byledgerIndexMinimum()
The earliest ledger to include transactions from. A value of-1
instructs the server to use the earliest validated ledger version available.- Specified by:
ledgerIndexMin
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerIndex
with a default of empty.
-
ledgerIndexMax
@Deprecated public Optional<LedgerIndex> ledgerIndexMax()
Deprecated.ledger_index_max field should be specified byledgerIndexMaximum()
.The most recent ledger to include transactions from. A value of-1
instructs the server to use the most recent validated ledger version available.- Specified by:
ledgerIndexMax
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerIndex
with a default of empty.
-
ledgerIndexMinimum
@Nullable public LedgerIndexBound ledgerIndexMinimum()
The earliest ledger to include transactions from. A value of-1
instructs the server to use the earliest validated ledger version available.- Specified by:
ledgerIndexMinimum
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerIndexBound
with a default of empty.
-
ledgerIndexMaximum
@Nullable public LedgerIndexBound ledgerIndexMaximum()
The most recent ledger to include transactions from. A value of-1
instructs the server to use the most recent validated ledger version available.- Specified by:
ledgerIndexMaximum
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerIndexBound
with a default of empty.
-
ledgerHash
@Deprecated public Optional<Hash256> ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.Return transactions from the ledger with this hash only.- Specified by:
ledgerHash
in interfaceAccountTransactionsRequestParams
- Returns:
- An optionally-present
Hash256
containing the ledger hash.
-
ledgerIndex
@Deprecated public Optional<LedgerIndex> ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.Return transactions from the ledger with this index only.- Specified by:
ledgerIndex
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerIndex
containing the ledger index, defaults to "current".
-
ledgerSpecifier
public Optional<LedgerSpecifier> ledgerSpecifier()
Specifies the ledger version to request. A ledger version can be specified by ledger hash, numerical ledger index, or a shortcut value.The only valid ledger index shortcut for this request object is
LedgerIndexShortcut.VALIDATED
.Setting this value will nullify and take precedence over
ledgerIndexMinimum()
andledgerIndexMaximum()
- Specified by:
ledgerSpecifier
in interfaceAccountTransactionsRequestParams
- Returns:
- A
LedgerSpecifier
specifying the ledger version to request.
-
binary
public boolean binary()
Whether or not to return transactions as JSON or binary-encoded hex strings. Alwaysfalse
.- Specified by:
binary
in interfaceAccountTransactionsRequestParams
- Returns:
- Always
false
.
-
forward
public boolean forward()
If set totrue
, returns values indexed with the oldest ledger first. Otherwise, the results are indexed with the newest ledger first. (Each page of results may not be internally ordered, but the pages are overall ordered.)- Specified by:
forward
in interfaceAccountTransactionsRequestParams
- Returns:
true
if values should be indexed with the oldest ledger first, otherwisefalse
. Defaults tofalse
.
-
limit
public Optional<com.google.common.primitives.UnsignedInteger> limit()
Limit the number of transactions to retrieve. The server is not required to honor this value.- Specified by:
limit
in interfaceAccountTransactionsRequestParams
- Returns:
- An optionally-present
UnsignedInteger
representing the number of transactions to return.
-
marker
public Optional<Marker> marker()
Value from a previous paginated response. Resume retrieving data where that response left off. This value is stable even if there is a change in the server's range of available ledgers.- Specified by:
marker
in interfaceAccountTransactionsRequestParams
- Returns:
- An optionally-present
String
containing the marker.
-
withAccount
public final ImmutableAccountTransactionsRequestParams 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
-
withLedgerIndexMin
@Deprecated public final ImmutableAccountTransactionsRequestParams withLedgerIndexMin(LedgerIndex value)
Deprecated.Copy the current immutable object by setting a present value for the optionalledgerIndexMin
attribute.- Parameters:
value
- The value for ledgerIndexMin- Returns:
- A modified copy of
this
object
-
withLedgerIndexMin
@Deprecated public final ImmutableAccountTransactionsRequestParams withLedgerIndexMin(Optional<? extends LedgerIndex> optional)
Deprecated.Copy the current immutable object by setting an optional value for theledgerIndexMin
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 ledgerIndexMin- Returns:
- A modified copy of
this
object
-
withLedgerIndexMax
@Deprecated public final ImmutableAccountTransactionsRequestParams withLedgerIndexMax(LedgerIndex value)
Deprecated.Copy the current immutable object by setting a present value for the optionalledgerIndexMax
attribute.- Parameters:
value
- The value for ledgerIndexMax- Returns:
- A modified copy of
this
object
-
withLedgerIndexMax
@Deprecated public final ImmutableAccountTransactionsRequestParams withLedgerIndexMax(Optional<? extends LedgerIndex> optional)
Deprecated.Copy the current immutable object by setting an optional value for theledgerIndexMax
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 ledgerIndexMax- Returns:
- A modified copy of
this
object
-
withLedgerIndexMinimum
public final ImmutableAccountTransactionsRequestParams withLedgerIndexMinimum(@Nullable LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMinimum
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndexMinimum (can benull
)- Returns:
- A modified copy of the
this
object
-
withLedgerIndexMaximum
public final ImmutableAccountTransactionsRequestParams withLedgerIndexMaximum(@Nullable LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMaximum
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndexMaximum (can benull
)- Returns:
- A modified copy of the
this
object
-
withLedgerHash
@Deprecated public final ImmutableAccountTransactionsRequestParams 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 ImmutableAccountTransactionsRequestParams 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 ImmutableAccountTransactionsRequestParams 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 ImmutableAccountTransactionsRequestParams 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
-
withLedgerSpecifier
public final ImmutableAccountTransactionsRequestParams withLedgerSpecifier(Optional<LedgerSpecifier> value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute. An equals check 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
-
withForward
public final ImmutableAccountTransactionsRequestParams withForward(boolean value)
Copy the current immutable object by setting a value for theforward
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for forward- Returns:
- A modified copy of the
this
object
-
withLimit
public final ImmutableAccountTransactionsRequestParams withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallimit
attribute.- Parameters:
value
- The value for limit- Returns:
- A modified copy of
this
object
-
withLimit
public final ImmutableAccountTransactionsRequestParams withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelimit
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for limit- Returns:
- A modified copy of
this
object
-
withMarker
public final ImmutableAccountTransactionsRequestParams withMarker(Marker value)
Copy the current immutable object by setting a present value for the optionalmarker
attribute.- Parameters:
value
- The value for marker- Returns:
- A modified copy of
this
object
-
withMarker
public final ImmutableAccountTransactionsRequestParams withMarker(Optional<? extends Marker> optional)
Copy the current immutable object by setting an optional value for themarker
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 marker- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAccountTransactionsRequestParams
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:account
,ledgerIndexMinimum
,ledgerIndexMaximum
,ledgerSpecifier
,binary
,forward
,limit
,marker
.
-
toString
public String toString()
Prints the immutable valueAccountTransactionsRequestParams
with attribute values.
-
copyOf
public static ImmutableAccountTransactionsRequestParams copyOf(AccountTransactionsRequestParams instance)
Creates an immutable copy of aAccountTransactionsRequestParams
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 AccountTransactionsRequestParams instance
-
builder
public static ImmutableAccountTransactionsRequestParams.Builder builder()
Creates a builder forImmutableAccountTransactionsRequestParams
.ImmutableAccountTransactionsRequestParams.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // required
account
.ledgerIndexMin(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optionalledgerIndexMin
.ledgerIndexMax(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optionalledgerIndexMax
.ledgerIndexMinimum(org.xrpl.xrpl4j.model.client.common.LedgerIndexBound | null) // nullableledgerIndexMinimum
.ledgerIndexMaximum(org.xrpl.xrpl4j.model.client.common.LedgerIndexBound | null) // nullableledgerIndexMaximum
.ledgerHash(org.xrpl.xrpl4j.model.transactions.Hash256) // optionalledgerHash
.ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optionalledgerIndex
.ledgerSpecifier(Optional<org.xrpl.xrpl4j.model.client.common.LedgerSpecifier>) // optionalledgerSpecifier
.forward(boolean) // optionalforward
.limit(com.google.common.primitives.UnsignedInteger) // optionallimit
.marker(org.xrpl.xrpl4j.model.transactions.Marker) // optionalmarker
.build();- Returns:
- A new ImmutableAccountTransactionsRequestParams builder
-
-