Class ImmutableAuthAccountWrapper

java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAuthAccountWrapper
All Implemented Interfaces:
AuthAccountWrapper

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAuthAccountWrapper extends Object implements AuthAccountWrapper
Immutable implementation of AuthAccountWrapper.

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

  • Method Details

    • authAccount

      public AuthAccount authAccount()
      Specified by:
      authAccount in interface AuthAccountWrapper
      Returns:
      An AuthAccount.
    • withAuthAccount

      public final ImmutableAuthAccountWrapper withAuthAccount(AuthAccount value)
      Copy the current immutable object by setting a value for the authAccount attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for authAccount
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableAuthAccountWrapper 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: authAccount.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableAuthAccountWrapper copyOf(AuthAccountWrapper instance)
      Creates an immutable copy of a AuthAccountWrapper 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 AuthAccountWrapper instance
    • builder

      public static ImmutableAuthAccountWrapper.Builder builder()
      Creates a builder for ImmutableAuthAccountWrapper.
       ImmutableAuthAccountWrapper.builder()
          .authAccount(org.xrpl.xrpl4j.model.ledger.AuthAccount) // required authAccount
          .build();
       
      Returns:
      A new ImmutableAuthAccountWrapper builder