Package org.xrpl.xrpl4j.wallet
Class ImmutableSeedWalletGenerationResult
- java.lang.Object
-
- org.xrpl.xrpl4j.wallet.ImmutableSeedWalletGenerationResult
-
- All Implemented Interfaces:
SeedWalletGenerationResult
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSeedWalletGenerationResult extends Object implements SeedWalletGenerationResult
Immutable implementation ofSeedWalletGenerationResult
.Use the builder to create immutable instances:
ImmutableSeedWalletGenerationResult.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableSeedWalletGenerationResult.Builder
Builds instances of typeImmutableSeedWalletGenerationResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSeedWalletGenerationResult.Builder
builder()
Creates a builder forImmutableSeedWalletGenerationResult
.static ImmutableSeedWalletGenerationResult
copyOf(SeedWalletGenerationResult instance)
Creates an immutable copy of aSeedWalletGenerationResult
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableSeedWalletGenerationResult
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:seed
,wallet
.String
seed()
The seed value that was used to generatewallet()
.String
toString()
Prints the immutable valueSeedWalletGenerationResult
with attribute values.Wallet
wallet()
ImmutableSeedWalletGenerationResult
withSeed(String value)
Copy the current immutable object by setting a value for theseed
attribute.ImmutableSeedWalletGenerationResult
withWallet(Wallet value)
Copy the current immutable object by setting a value for thewallet
attribute.
-
-
-
Method Detail
-
seed
public String seed()
The seed value that was used to generatewallet()
.- Specified by:
seed
in interfaceSeedWalletGenerationResult
- Returns:
- A
String
containing the seed.
-
wallet
public Wallet wallet()
- Specified by:
wallet
in interfaceSeedWalletGenerationResult
- Returns:
- A
Wallet
.
-
withSeed
public final ImmutableSeedWalletGenerationResult withSeed(String value)
Copy the current immutable object by setting a value for theseed
attribute. An equals check 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
public final ImmutableSeedWalletGenerationResult withWallet(Wallet value)
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
public boolean equals(@Nullable Object another)
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
public String toString()
Prints the immutable valueSeedWalletGenerationResult
with attribute values.
-
copyOf
public static ImmutableSeedWalletGenerationResult copyOf(SeedWalletGenerationResult instance)
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
public static ImmutableSeedWalletGenerationResult.Builder builder()
Creates a builder forImmutableSeedWalletGenerationResult
.ImmutableSeedWalletGenerationResult.builder() .seed(String) // required
seed
.wallet(org.xrpl.xrpl4j.wallet.Wallet) // requiredwallet
.build();- Returns:
- A new ImmutableSeedWalletGenerationResult builder
-
-