Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainClaimAttestation
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainClaimAttestation
- All Implemented Interfaces:
XChainClaimAttestation
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableXChainClaimAttestation
extends Object
implements XChainClaimAttestation
Immutable implementation of
XChainClaimAttestation.
Use the builder to create immutable instances:
ImmutableXChainClaimAttestation.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableXChainClaimAttestation. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableXChainClaimAttestation.copyOf(XChainClaimAttestation instance) Creates an immutable copy of aXChainClaimAttestationvalue.booleanThis instance is equal to all instances ofImmutableXChainClaimAttestationthat have equal attribute values.inthashCode()Computes a hash code from attributes:xChainClaimProofSig.toString()Prints the immutable valueXChainClaimAttestationwith attribute values.Copy the current immutable object by setting a value for thexChainClaimProofSigattribute.
-
Method Details
-
xChainClaimProofSig
- Specified by:
xChainClaimProofSigin interfaceXChainClaimAttestation- Returns:
- An
XChainClaimProofSig.
-
withXChainClaimProofSig
Copy the current immutable object by setting a value for thexChainClaimProofSigattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for xChainClaimProofSig- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableXChainClaimAttestationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:xChainClaimProofSig. -
toString
Prints the immutable valueXChainClaimAttestationwith attribute values. -
copyOf
Creates an immutable copy of aXChainClaimAttestationvalue. 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 XChainClaimAttestation instance
-
builder
Creates a builder forImmutableXChainClaimAttestation.ImmutableXChainClaimAttestation.builder() .xChainClaimProofSig(org.xrpl.xrpl4j.model.ledger.XChainClaimProofSig) // requiredxChainClaimProofSig.build();- Returns:
- A new ImmutableXChainClaimAttestation builder
-