Package org.xrpl.xrpl4j.model.ledger
Class ImmutableVoteEntry.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableVoteEntry.Builder
- Enclosing class:
ImmutableVoteEntry
Builds instances of type
ImmutableVoteEntry.
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.build()Builds a newImmutableVoteEntry.Fill a builder with attribute values from the providedVoteEntryinstance.tradingFee(TradingFee tradingFee) Initializes the value for thetradingFeeattribute.voteWeight(VoteWeight voteWeight) Initializes the value for thevoteWeightattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVoteEntryinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- 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
-
tradingFee
Initializes the value for thetradingFeeattribute.- Parameters:
tradingFee- The value for tradingFee- Returns:
thisbuilder for use in a chained invocation
-
voteWeight
Initializes the value for thevoteWeightattribute.- Parameters:
voteWeight- The value for voteWeight- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableVoteEntry.- Returns:
- An immutable instance of VoteEntry
- Throws:
IllegalStateException- if any required attributes are missing
-