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 of SeedWalletGenerationResult.

Use the builder to create immutable instances: ImmutableSeedWalletGenerationResult.builder().

  • Method Details

    • seed

      public String seed()
      The seed value that was used to generate wallet().
      Specified by:
      seed in interface SeedWalletGenerationResult
      Returns:
      A String containing the seed.
    • wallet

      public Wallet wallet()
      The Wallet generated from seed().
      Specified by:
      wallet in interface SeedWalletGenerationResult
      Returns:
      A Wallet.
    • withSeed

      public final ImmutableSeedWalletGenerationResult withSeed(String value)
      Copy the current immutable object by setting a value for the seed attribute. An equals check used to prevent copying of the same value by returning this.
      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 the wallet attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      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 of ImmutableSeedWalletGenerationResult that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: seed, wallet.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SeedWalletGenerationResult with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a SeedWalletGenerationResult 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 for ImmutableSeedWalletGenerationResult.
       ImmutableSeedWalletGenerationResult.builder()
          .seed(String) // required seed
          .wallet(org.xrpl.xrpl4j.wallet.Wallet) // required wallet
          .build();
       
      Returns:
      A new ImmutableSeedWalletGenerationResult builder