Package org.xrpl.xrpl4j.model.ledger
Class ImmutableAuthAccount
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAuthAccount
- All Implemented Interfaces:
AuthAccount
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAuthAccount
extends Object
implements AuthAccount
Immutable implementation of
AuthAccount.
Use the builder to create immutable instances:
ImmutableAuthAccount.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAuthAccount. -
Method Summary
Modifier and TypeMethodDescriptionaccount()The address of the account.static ImmutableAuthAccount.Builderbuilder()Creates a builder forImmutableAuthAccount.static ImmutableAuthAccountcopyOf(AuthAccount instance) Creates an immutable copy of aAuthAccountvalue.booleanThis instance is equal to all instances ofImmutableAuthAccountthat have equal attribute values.inthashCode()Computes a hash code from attributes:account.toString()Prints the immutable valueAuthAccountwith attribute values.final ImmutableAuthAccountwithAccount(Address value) Copy the current immutable object by setting a value for theaccountattribute.
-
Method Details
-
account
The address of the account.- Specified by:
accountin interfaceAuthAccount- Returns:
- An
Address.
-
withAccount
Copy the current immutable object by setting a value for theaccountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for account- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAuthAccountthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:account. -
toString
Prints the immutable valueAuthAccountwith attribute values. -
copyOf
Creates an immutable copy of aAuthAccountvalue. 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 AuthAccount instance
-
builder
Creates a builder forImmutableAuthAccount.ImmutableAuthAccount.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // requiredaccount.build();- Returns:
- A new ImmutableAuthAccount builder
-