Package org.xrpl.xrpl4j.model.ledger
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAuthAccountWrapper. -
Method Summary
Modifier and TypeMethodDescriptionAnAuthAccount.builder()Creates a builder forImmutableAuthAccountWrapper.static ImmutableAuthAccountWrappercopyOf(AuthAccountWrapper instance) Creates an immutable copy of aAuthAccountWrappervalue.booleanThis instance is equal to all instances ofImmutableAuthAccountWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:authAccount.toString()Prints the immutable valueAuthAccountWrapperwith attribute values.withAuthAccount(AuthAccount value) Copy the current immutable object by setting a value for theauthAccountattribute.
-
Method Details
-
authAccount
AnAuthAccount.- Specified by:
authAccountin interfaceAuthAccountWrapper- Returns:
- An
AuthAccount.
-
withAuthAccount
Copy the current immutable object by setting a value for theauthAccountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authAccount- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAuthAccountWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:authAccount. -
toString
Prints the immutable valueAuthAccountWrapperwith attribute values. -
copyOf
Creates an immutable copy of aAuthAccountWrappervalue. 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
Creates a builder forImmutableAuthAccountWrapper.ImmutableAuthAccountWrapper.builder() .authAccount(org.xrpl.xrpl4j.model.ledger.AuthAccount) // requiredauthAccount.build();- Returns:
- A new ImmutableAuthAccountWrapper builder
-