Package org.xrpl.xrpl4j.model.ledger
Class ImmutableAuctionSlot.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAuctionSlot.Builder
- Enclosing class:
ImmutableAuctionSlot
Builds instances of type
ImmutableAuctionSlot.
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 TypeMethodDescriptionInitializes the value for theaccountattribute.addAllAuthAccounts(Iterable<? extends AuthAccountWrapper> elements) Adds elements toauthAccountslist.addAuthAccounts(AuthAccountWrapper element) Adds one element toauthAccountslist.addAuthAccounts(AuthAccountWrapper... elements) Adds elements toauthAccountslist.authAccounts(Iterable<? extends AuthAccountWrapper> elements) Sets or replaces all elements forauthAccountslist.build()Builds a newImmutableAuctionSlot.discountedFee(TradingFee discountedFee) Initializes the value for thediscountedFeeattribute.expiration(com.google.common.primitives.UnsignedInteger expiration) Initializes the value for theexpirationattribute.from(AuctionSlot instance) Fill a builder with attribute values from the providedAuctionSlotinstance.price(IssuedCurrencyAmount price) Initializes the value for thepriceattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedAuctionSlotinstance. 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
-
account
Initializes the value for theaccountattribute.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
addAuthAccounts
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAuthAccounts(AuthAccountWrapper element) Adds one element toauthAccountslist.- Parameters:
element- A authAccounts element- Returns:
thisbuilder for use in a chained invocation
-
addAuthAccounts
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAuthAccounts(AuthAccountWrapper... elements) Adds elements toauthAccountslist.- Parameters:
elements- An array of authAccounts elements- Returns:
thisbuilder for use in a chained invocation
-
authAccounts
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder authAccounts(Iterable<? extends AuthAccountWrapper> elements) Sets or replaces all elements forauthAccountslist.- Parameters:
elements- An iterable of authAccounts elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAuthAccounts
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAllAuthAccounts(Iterable<? extends AuthAccountWrapper> elements) Adds elements toauthAccountslist.- Parameters:
elements- An iterable of authAccounts elements- Returns:
thisbuilder for use in a chained invocation
-
discountedFee
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder discountedFee(TradingFee discountedFee) Initializes the value for thediscountedFeeattribute.- Parameters:
discountedFee- The value for discountedFee- Returns:
thisbuilder for use in a chained invocation
-
price
Initializes the value for thepriceattribute.- Parameters:
price- The value for price- Returns:
thisbuilder for use in a chained invocation
-
expiration
@CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder expiration(com.google.common.primitives.UnsignedInteger expiration) Initializes the value for theexpirationattribute.- Parameters:
expiration- The value for expiration- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAuctionSlot.- Returns:
- An immutable instance of AuctionSlot
- Throws:
IllegalStateException- if any required attributes are missing
-