Class ImmutableSignerWrapper
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableSignerWrapper
- All Implemented Interfaces:
SignerWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSignerWrapper
extends Object
implements SignerWrapper
Immutable implementation of
SignerWrapper.
Use the builder to create immutable instances:
ImmutableSignerWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSignerWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSignerWrapper.static ImmutableSignerWrappercopyOf(SignerWrapper instance) Creates an immutable copy of aSignerWrappervalue.booleanThis instance is equal to all instances ofImmutableSignerWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:signer.signer()TheSignerthat this wrapper wraps.toString()Prints the immutable valueSignerWrapperwith attribute values.final ImmutableSignerWrapperwithSigner(Signer value) Copy the current immutable object by setting a value for thesignerattribute.
-
Method Details
-
signer
TheSignerthat this wrapper wraps.- Specified by:
signerin interfaceSignerWrapper- Returns:
- The
Signerthat this wrapper wraps.
-
withSigner
Copy the current immutable object by setting a value for thesignerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signer- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableSignerWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:signer. -
toString
Prints the immutable valueSignerWrapperwith attribute values. -
copyOf
Creates an immutable copy of aSignerWrappervalue. 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 SignerWrapper instance
-
builder
Creates a builder forImmutableSignerWrapper.ImmutableSignerWrapper.builder() .signer(org.xrpl.xrpl4j.model.transactions.Signer) // requiredsigner.build();- Returns:
- A new ImmutableSignerWrapper builder
-