Class ImmutableCredentialWrapper
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableCredentialWrapper
- All Implemented Interfaces:
CredentialWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCredentialWrapper
extends Object
implements CredentialWrapper
Immutable implementation of
CredentialWrapper.
Use the builder to create immutable instances:
ImmutableCredentialWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCredentialWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCredentialWrapper.static ImmutableCredentialWrappercopyOf(CredentialWrapper instance) Creates an immutable copy of aCredentialWrappervalue.A credential.booleanThis instance is equal to all instances ofImmutableCredentialWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:credential.toString()Prints the immutable valueCredentialWrapperwith attribute values.withCredential(Credential value) Copy the current immutable object by setting a value for thecredentialattribute.
-
Method Details
-
credential
A credential.- Specified by:
credentialin interfaceCredentialWrapper- Returns:
- A
Credential.
-
withCredential
Copy the current immutable object by setting a value for thecredentialattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for credential- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableCredentialWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:credential. -
toString
Prints the immutable valueCredentialWrapperwith attribute values. -
copyOf
Creates an immutable copy of aCredentialWrappervalue. 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 CredentialWrapper instance
-
builder
Creates a builder forImmutableCredentialWrapper.ImmutableCredentialWrapper.builder() .credential(org.xrpl.xrpl4j.model.transactions.Credential) // requiredcredential.build();- Returns:
- A new ImmutableCredentialWrapper builder
-