Class ImmutableSeedWalletGenerationResult
java.lang.Object
org.xrpl.xrpl4j.crypto.core.wallet.ImmutableSeedWalletGenerationResult
- All Implemented Interfaces:
SeedWalletGenerationResult
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSeedWalletGenerationResult
extends Object
implements SeedWalletGenerationResult
Immutable implementation of
SeedWalletGenerationResult
.
Use the builder to create immutable instances:
ImmutableSeedWalletGenerationResult.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSeedWalletGenerationResult
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSeedWalletGenerationResult
.copyOf
(SeedWalletGenerationResult instance) Creates an immutable copy of aSeedWalletGenerationResult
value.boolean
This instance is equal to all instances ofImmutableSeedWalletGenerationResult
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:seed
,wallet
.seed()
The seed value that was used to generatewallet()
.toString()
Prints the immutable valueSeedWalletGenerationResult
with attribute values.wallet()
Copy the current immutable object by setting a value for theseed
attribute.withWallet
(Wallet value) Copy the current immutable object by setting a value for thewallet
attribute.
-
Method Details
-
seed
The seed value that was used to generatewallet()
.- Specified by:
seed
in interfaceSeedWalletGenerationResult
- Returns:
- A
String
containing the seed.
-
wallet
- Specified by:
wallet
in interfaceSeedWalletGenerationResult
- Returns:
- A
Wallet
.
-
withSeed
Copy the current immutable object by setting a value for theseed
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for seed- Returns:
- A modified copy of the
this
object
-
withWallet
Copy the current immutable object by setting a value for thewallet
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for wallet- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSeedWalletGenerationResult
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:seed
,wallet
. -
toString
Prints the immutable valueSeedWalletGenerationResult
with attribute values. -
copyOf
Creates an immutable copy of aSeedWalletGenerationResult
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable SeedWalletGenerationResult instance
-
builder
Creates a builder forImmutableSeedWalletGenerationResult
.ImmutableSeedWalletGenerationResult.builder() .seed(org.xrpl.xrpl4j.crypto.core.keys.Seed) // required
seed
.wallet(org.xrpl.xrpl4j.crypto.core.wallet.Wallet) // requiredwallet
.build();- Returns:
- A new ImmutableSeedWalletGenerationResult builder
-