Package org.xrpl.xrpl4j.wallet
Class ImmutableSeedWalletGenerationResult.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.wallet.ImmutableSeedWalletGenerationResult.Builder
-
- Enclosing class:
- ImmutableSeedWalletGenerationResult
@NotThreadSafe public static final class ImmutableSeedWalletGenerationResult.Builder extends Object
Builds instances of typeImmutableSeedWalletGenerationResult
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSeedWalletGenerationResult
build()
Builds a newImmutableSeedWalletGenerationResult
.ImmutableSeedWalletGenerationResult.Builder
from(SeedWalletGenerationResult instance)
Fill a builder with attribute values from the providedSeedWalletGenerationResult
instance.ImmutableSeedWalletGenerationResult.Builder
seed(String seed)
Initializes the value for theseed
attribute.ImmutableSeedWalletGenerationResult.Builder
wallet(Wallet wallet)
Initializes the value for thewallet
attribute.
-
-
-
Method Detail
-
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
@CanIgnoreReturnValue public final ImmutableSeedWalletGenerationResult.Builder seed(String 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
public ImmutableSeedWalletGenerationResult build()
Builds a newImmutableSeedWalletGenerationResult
.- Returns:
- An immutable instance of SeedWalletGenerationResult
- Throws:
IllegalStateException
- if any required attributes are missing
-
-