Package org.xrpl.xrpl4j.model.ledger
Class ImmutableNfTokenWrapper
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableNfTokenWrapper
- All Implemented Interfaces:
NfTokenWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableNfTokenWrapper
extends Object
implements NfTokenWrapper
Immutable implementation of
NfTokenWrapper.
Use the builder to create immutable instances:
ImmutableNfTokenWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableNfTokenWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableNfTokenWrapper.static ImmutableNfTokenWrappercopyOf(NfTokenWrapper instance) Creates an immutable copy of aNfTokenWrappervalue.booleanThis instance is equal to all instances ofImmutableNfTokenWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:nfToken.nfToken()TheNfTokenthat this wrapper wraps.toString()Prints the immutable valueNfTokenWrapperwith attribute values.final ImmutableNfTokenWrapperwithNfToken(NfToken value) Copy the current immutable object by setting a value for thenfTokenattribute.
-
Method Details
-
nfToken
TheNfTokenthat this wrapper wraps.- Specified by:
nfTokenin interfaceNfTokenWrapper- Returns:
- A
NfToken.
-
withNfToken
Copy the current immutable object by setting a value for thenfTokenattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nfToken- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableNfTokenWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nfToken. -
toString
Prints the immutable valueNfTokenWrapperwith attribute values. -
copyOf
Creates an immutable copy of aNfTokenWrappervalue. 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 NfTokenWrapper instance
-
builder
Creates a builder forImmutableNfTokenWrapper.ImmutableNfTokenWrapper.builder() .nfToken(org.xrpl.xrpl4j.model.ledger.NfToken) // requirednfToken.build();- Returns:
- A new ImmutableNfTokenWrapper builder
-