Class ImmutableAccountTransactionsResult
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountTransactionsResult
-
- All Implemented Interfaces:
AccountTransactionsResult
,XrplResult
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountTransactionsResult extends Object implements AccountTransactionsResult
Immutable implementation ofAccountTransactionsResult
.Use the builder to create immutable instances:
ImmutableAccountTransactionsResult.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAccountTransactionsResult.Builder
Builds instances of typeImmutableAccountTransactionsResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
account()
Unique Address identifying the related account.static ImmutableAccountTransactionsResult.Builder
builder()
Creates a builder forImmutableAccountTransactionsResult
.static ImmutableAccountTransactionsResult
copyOf(AccountTransactionsResult instance)
Creates an immutable copy of aAccountTransactionsResult
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAccountTransactionsResult
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:status
,account
,ledgerIndexMinimum
,ledgerIndexMaximum
,limit
,marker
,transactions
,validated
.LedgerIndex
ledgerIndexMax()
Deprecated.This field will be removed in favor ofledgerIndexMaximum()
.LedgerIndexBound
ledgerIndexMaximum()
The ledger index of the most recent ledger actually searched for transactions.LedgerIndex
ledgerIndexMin()
Deprecated.This field will be removed in favor ofledgerIndexMinimum()
.LedgerIndexBound
ledgerIndexMinimum()
The ledger index of the earliest ledger actually searched for transactions.com.google.common.primitives.UnsignedInteger
limit()
The limit value used in the request.Optional<Marker>
marker()
Server-defined value indicating the response is paginated.Optional<String>
status()
The value"success"
indicates the request was successfully received and understood by the server.String
toString()
Prints the immutable valueAccountTransactionsResult
with attribute values.com.google.common.collect.ImmutableList<AccountTransactionsTransactionResult<? extends Transaction>>
transactions()
Array of transactions matching the request's criteria.boolean
validated()
Whether or not the information in this response comes from a validated ledger version.ImmutableAccountTransactionsResult
withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute.ImmutableAccountTransactionsResult
withLedgerIndexMax(LedgerIndex value)
Deprecated.ImmutableAccountTransactionsResult
withLedgerIndexMaximum(LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMaximum
attribute.ImmutableAccountTransactionsResult
withLedgerIndexMin(LedgerIndex value)
Deprecated.ImmutableAccountTransactionsResult
withLedgerIndexMinimum(LedgerIndexBound value)
Copy the current immutable object by setting a value for theledgerIndexMinimum
attribute.ImmutableAccountTransactionsResult
withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a value for thelimit
attribute.ImmutableAccountTransactionsResult
withMarker(Optional<? extends Marker> optional)
Copy the current immutable object by setting an optional value for themarker
attribute.ImmutableAccountTransactionsResult
withMarker(Marker value)
Copy the current immutable object by setting a present value for the optionalmarker
attribute.ImmutableAccountTransactionsResult
withStatus(String value)
Copy the current immutable object by setting a present value for the optionalstatus
attribute.ImmutableAccountTransactionsResult
withStatus(Optional<String> optional)
Copy the current immutable object by setting an optional value for thestatus
attribute.ImmutableAccountTransactionsResult
withTransactions(Iterable<? extends AccountTransactionsTransactionResult<? extends Transaction>> elements)
Copy the current immutable object with elements that replace the content oftransactions
.ImmutableAccountTransactionsResult
withTransactions(AccountTransactionsTransactionResult<? extends Transaction>... elements)
Copy the current immutable object with elements that replace the content oftransactions
.ImmutableAccountTransactionsResult
withValidated(boolean value)
Copy the current immutable object by setting a value for thevalidated
attribute.
-
-
-
Method Detail
-
status
public Optional<String> status()
The value"success"
indicates the request was successfully received and understood by the server.- Specified by:
status
in interfaceXrplResult
- Returns:
- The
String
"success"
if the request was successful, otherwiseOptional.empty()
.
-
account
public Address account()
Unique Address identifying the related account.- Specified by:
account
in interfaceAccountTransactionsResult
- Returns:
- The
Address
of the account.
-
ledgerIndexMin
@Deprecated public LedgerIndex ledgerIndexMin()
Deprecated.This field will be removed in favor ofledgerIndexMinimum()
.The ledger index of the earliest ledger actually searched for transactions.- Specified by:
ledgerIndexMin
in interfaceAccountTransactionsResult
- Returns:
- The
LedgerIndexBound
of the earliest ledger searched.
-
ledgerIndexMax
@Deprecated public LedgerIndex ledgerIndexMax()
Deprecated.This field will be removed in favor ofledgerIndexMaximum()
.The ledger index of the most recent ledger actually searched for transactions.- Specified by:
ledgerIndexMax
in interfaceAccountTransactionsResult
- Returns:
- The
LedgerIndexBound
of the latest ledger searched.
-
ledgerIndexMinimum
public LedgerIndexBound ledgerIndexMinimum()
The ledger index of the earliest ledger actually searched for transactions.- Specified by:
ledgerIndexMinimum
in interfaceAccountTransactionsResult
- Returns:
- The
LedgerIndexBound
of the earliest ledger searched.
-
ledgerIndexMaximum
public LedgerIndexBound ledgerIndexMaximum()
The ledger index of the most recent ledger actually searched for transactions.- Specified by:
ledgerIndexMaximum
in interfaceAccountTransactionsResult
- Returns:
- The
LedgerIndexBound
of the latest ledger searched.
-
limit
public com.google.common.primitives.UnsignedInteger limit()
The limit value used in the request. (This may differ from the actual limit value enforced by the server.)- Specified by:
limit
in interfaceAccountTransactionsResult
- Returns:
- An
UnsignedInteger
representing the requested limit.
-
marker
public Optional<Marker> marker()
Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off.- Specified by:
marker
in interfaceAccountTransactionsResult
- Returns:
- A
String
containing the marker.
-
transactions
public com.google.common.collect.ImmutableList<AccountTransactionsTransactionResult<? extends Transaction>> transactions()
Array of transactions matching the request's criteria.- Specified by:
transactions
in interfaceAccountTransactionsResult
- Returns:
- A
List
ofAccountTransactionsTransactionResult
s.
-
validated
public boolean validated()
Whether or not the information in this response comes from a validated ledger version.- Specified by:
validated
in interfaceAccountTransactionsResult
- Returns:
true
if the information is from a validated ledger, otherwisefalse
.
-
withStatus
public final ImmutableAccountTransactionsResult withStatus(String value)
Copy the current immutable object by setting a present value for the optionalstatus
attribute.- Parameters:
value
- The value for status- Returns:
- A modified copy of
this
object
-
withStatus
public final ImmutableAccountTransactionsResult withStatus(Optional<String> optional)
Copy the current immutable object by setting an optional value for thestatus
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for status- Returns:
- A modified copy of
this
object
-
withAccount
public final ImmutableAccountTransactionsResult 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 ImmutableAccountTransactionsResult withLedgerIndexMin(LedgerIndex value)
Deprecated.Copy the current immutable object by setting a value for theledgerIndexMin
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndexMin- Returns:
- A modified copy of the
this
object
-
withLedgerIndexMax
@Deprecated public final ImmutableAccountTransactionsResult withLedgerIndexMax(LedgerIndex value)
Deprecated.Copy the current immutable object by setting a value for theledgerIndexMax
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndexMax- Returns:
- A modified copy of the
this
object
-
withLedgerIndexMinimum
public final ImmutableAccountTransactionsResult withLedgerIndexMinimum(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- Returns:
- A modified copy of the
this
object
-
withLedgerIndexMaximum
public final ImmutableAccountTransactionsResult withLedgerIndexMaximum(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- Returns:
- A modified copy of the
this
object
-
withLimit
public final ImmutableAccountTransactionsResult withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a value for thelimit
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for limit- Returns:
- A modified copy of the
this
object
-
withMarker
public final ImmutableAccountTransactionsResult 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 ImmutableAccountTransactionsResult 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
-
withTransactions
@SafeVarargs public final ImmutableAccountTransactionsResult withTransactions(AccountTransactionsTransactionResult<? extends Transaction>... elements)
Copy the current immutable object with elements that replace the content oftransactions
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withTransactions
public final ImmutableAccountTransactionsResult withTransactions(Iterable<? extends AccountTransactionsTransactionResult<? extends Transaction>> elements)
Copy the current immutable object with elements that replace the content oftransactions
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of transactions elements to set- Returns:
- A modified copy of
this
object
-
withValidated
public final ImmutableAccountTransactionsResult withValidated(boolean value)
Copy the current immutable object by setting a value for thevalidated
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for validated- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAccountTransactionsResult
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:status
,account
,ledgerIndexMinimum
,ledgerIndexMaximum
,limit
,marker
,transactions
,validated
.
-
toString
public String toString()
Prints the immutable valueAccountTransactionsResult
with attribute values.
-
copyOf
public static ImmutableAccountTransactionsResult copyOf(AccountTransactionsResult instance)
Creates an immutable copy of aAccountTransactionsResult
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 AccountTransactionsResult instance
-
builder
public static ImmutableAccountTransactionsResult.Builder builder()
Creates a builder forImmutableAccountTransactionsResult
.ImmutableAccountTransactionsResult.builder() .status(String) // optional
status
.account(org.xrpl.xrpl4j.model.transactions.Address) // requiredaccount
.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) // requiredledgerIndexMinimum
.ledgerIndexMaximum(org.xrpl.xrpl4j.model.client.common.LedgerIndexBound) // requiredledgerIndexMaximum
.limit(com.google.common.primitives.UnsignedInteger) // requiredlimit
.marker(org.xrpl.xrpl4j.model.transactions.Marker) // optionalmarker
.addTransactions|addAllTransactions(org.xrpl.xrpl4j.model.client.accounts.AccountTransactionsTransactionResult<? extends org.xrpl.xrpl4j.model.transactions.Transaction>) //transactions
elements .validated(boolean) // optionalvalidated
.build();- Returns:
- A new ImmutableAccountTransactionsResult builder
-
-