Package org.xrpl.xrpl4j.model.ledger
Class ImmutableNfTokenPageObject.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableNfTokenPageObject.Builder
- Enclosing class:
ImmutableNfTokenPageObject
Builds instances of type
ImmutableNfTokenPageObject.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllNfTokens(Iterable<? extends NfTokenWrapper> elements) Adds elements tonfTokenslist.addNfTokens(NfTokenWrapper element) Adds one element tonfTokenslist.addNfTokens(NfTokenWrapper... elements) Adds elements tonfTokenslist.build()Builds a newImmutableNfTokenPageObject.from(NfTokenPageObject instance) Fill a builder with attribute values from the providedNfTokenPageObjectinstance.Initializes the value for theindexattribute.nextPageMin(Optional<? extends Hash256> nextPageMin) Initializes the optional valuenextPageMinto nextPageMin.nextPageMin(Hash256 nextPageMin) Initializes the optional valuenextPageMinto nextPageMin.nfTokens(Iterable<? extends NfTokenWrapper> elements) Sets or replaces all elements fornfTokenslist.previousPageMin(Optional<? extends Hash256> previousPageMin) Initializes the optional valuepreviousPageMinto previousPageMin.previousPageMin(Hash256 previousPageMin) Initializes the optional valuepreviousPageMinto previousPageMin.previousTransactionId(Optional<? extends Hash256> previousTransactionId) Initializes the optional valuepreviousTransactionIdto previousTransactionId.previousTransactionId(Hash256 previousTransactionId) Initializes the optional valuepreviousTransactionIdto previousTransactionId.previousTransactionLedgerSequence(Optional<? extends LedgerIndex> previousTransactionLedgerSequence) Initializes the optional valuepreviousTransactionLedgerSequenceto previousTransactionLedgerSequence.previousTransactionLedgerSequence(LedgerIndex previousTransactionLedgerSequence) Initializes the optional valuepreviousTransactionLedgerSequenceto previousTransactionLedgerSequence.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder from(NfTokenPageObject instance) Fill a builder with attribute values from the providedNfTokenPageObjectinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addNfTokens
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addNfTokens(NfTokenWrapper element) Adds one element tonfTokenslist.- Parameters:
element- A nfTokens element- Returns:
thisbuilder for use in a chained invocation
-
addNfTokens
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addNfTokens(NfTokenWrapper... elements) Adds elements tonfTokenslist.- Parameters:
elements- An array of nfTokens elements- Returns:
thisbuilder for use in a chained invocation
-
nfTokens
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder nfTokens(Iterable<? extends NfTokenWrapper> elements) Sets or replaces all elements fornfTokenslist.- Parameters:
elements- An iterable of nfTokens elements- Returns:
thisbuilder for use in a chained invocation
-
addAllNfTokens
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addAllNfTokens(Iterable<? extends NfTokenWrapper> elements) Adds elements tonfTokenslist.- Parameters:
elements- An iterable of nfTokens elements- Returns:
thisbuilder for use in a chained invocation
-
nextPageMin
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder nextPageMin(Hash256 nextPageMin) Initializes the optional valuenextPageMinto nextPageMin.- Parameters:
nextPageMin- The value for nextPageMin- Returns:
thisbuilder for chained invocation
-
nextPageMin
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder nextPageMin(Optional<? extends Hash256> nextPageMin) Initializes the optional valuenextPageMinto nextPageMin.- Parameters:
nextPageMin- The value for nextPageMin- Returns:
thisbuilder for use in a chained invocation
-
previousPageMin
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousPageMin(Hash256 previousPageMin) Initializes the optional valuepreviousPageMinto previousPageMin.- Parameters:
previousPageMin- The value for previousPageMin- Returns:
thisbuilder for chained invocation
-
previousPageMin
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousPageMin(Optional<? extends Hash256> previousPageMin) Initializes the optional valuepreviousPageMinto previousPageMin.- Parameters:
previousPageMin- The value for previousPageMin- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionId
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousTransactionId(Hash256 previousTransactionId) Initializes the optional valuepreviousTransactionIdto previousTransactionId.- Parameters:
previousTransactionId- The value for previousTransactionId- Returns:
thisbuilder for chained invocation
-
previousTransactionId
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousTransactionId(Optional<? extends Hash256> previousTransactionId) Initializes the optional valuepreviousTransactionIdto previousTransactionId.- Parameters:
previousTransactionId- The value for previousTransactionId- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionLedgerSequence
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousTransactionLedgerSequence(LedgerIndex previousTransactionLedgerSequence) Initializes the optional valuepreviousTransactionLedgerSequenceto previousTransactionLedgerSequence.- Parameters:
previousTransactionLedgerSequence- The value for previousTransactionLedgerSequence- Returns:
thisbuilder for chained invocation
-
previousTransactionLedgerSequence
@CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousTransactionLedgerSequence(Optional<? extends LedgerIndex> previousTransactionLedgerSequence) Initializes the optional valuepreviousTransactionLedgerSequenceto previousTransactionLedgerSequence.- Parameters:
previousTransactionLedgerSequence- The value for previousTransactionLedgerSequence- Returns:
thisbuilder for use in a chained invocation
-
index
Initializes the value for theindexattribute.- Parameters:
index- The value for index- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableNfTokenPageObject.- Returns:
- An immutable instance of NfTokenPageObject
- Throws:
IllegalStateException- if any required attributes are missing
-