Class ImmutableSigner.Builder
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableSigner.Builder
- Enclosing class:
ImmutableSigner
Builds instances of type
ImmutableSigner.
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 TypeMethodDescriptionfinal ImmutableSigner.BuilderInitializes the value for theaccountattribute.build()Builds a newImmutableSigner.final ImmutableSigner.BuilderFill a builder with attribute values from the providedSignerinstance.final ImmutableSigner.BuildersigningPublicKey(PublicKey signingPublicKey) Initializes the value for thesigningPublicKeyattribute.final ImmutableSigner.BuildertransactionSignature(Signature transactionSignature) Initializes the value for thetransactionSignatureattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedSignerinstance. 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.If not set, this attribute will have a default value as returned by the initializer of
account.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableSigner.Builder transactionSignature(Signature transactionSignature) Initializes the value for thetransactionSignatureattribute.- Parameters:
transactionSignature- The value for transactionSignature- Returns:
thisbuilder for use in a chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutableSigner.Builder signingPublicKey(PublicKey signingPublicKey) Initializes the value for thesigningPublicKeyattribute.- Parameters:
signingPublicKey- The value for signingPublicKey- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableSigner.- Returns:
- An immutable instance of Signer
- Throws:
IllegalStateException- if any required attributes are missing
-