Package org.xrpl.xrpl4j.model.ledger
Class ImmutableSignerEntry.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableSignerEntry.Builder
- Enclosing class:
ImmutableSignerEntry
Builds instances of type
ImmutableSignerEntry.
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 newImmutableSignerEntry.from(SignerEntry instance) Fill a builder with attribute values from the providedSignerEntryinstance.signerWeight(com.google.common.primitives.UnsignedInteger signerWeight) Initializes the value for thesignerWeightattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedSignerEntryinstance. 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
-
signerWeight
@CanIgnoreReturnValue public final ImmutableSignerEntry.Builder signerWeight(com.google.common.primitives.UnsignedInteger signerWeight) Initializes the value for thesignerWeightattribute.- Parameters:
signerWeight- The value for signerWeight- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableSignerEntry.- Returns:
- An immutable instance of SignerEntry
- Throws:
IllegalStateException- if any required attributes are missing
-