Package org.xrpl.xrpl4j.wallet
Class ImmutableSeedWalletGenerationResult.Builder
java.lang.Object
org.xrpl.xrpl4j.wallet.ImmutableSeedWalletGenerationResult.Builder
- Enclosing class:
- ImmutableSeedWalletGenerationResult
Builds instances of type
ImmutableSeedWalletGenerationResult
.
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 TypeMethodDescriptionbuild()
Builds a newImmutableSeedWalletGenerationResult
.from
(SeedWalletGenerationResult instance) Fill a builder with attribute values from the providedSeedWalletGenerationResult
instance.Initializes the value for theseed
attribute.Initializes the value for thewallet
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableSeedWalletGenerationResult.Builder from(SeedWalletGenerationResult instance) Fill a builder with attribute values from the providedSeedWalletGenerationResult
instance. 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:
this
builder for use in a chained invocation
-
seed
Initializes the value for theseed
attribute.- Parameters:
seed
- The value for seed- Returns:
this
builder for use in a chained invocation
-
wallet
@CanIgnoreReturnValue public final ImmutableSeedWalletGenerationResult.Builder wallet(Wallet wallet) Initializes the value for thewallet
attribute.- Parameters:
wallet
- The value for wallet- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableSeedWalletGenerationResult
.- Returns:
- An immutable instance of SeedWalletGenerationResult
- Throws:
IllegalStateException
- if any required attributes are missing
-