Class ImmutableChannelVerifyResult
java.lang.Object
org.xrpl.xrpl4j.model.client.channels.ImmutableChannelVerifyResult
- All Implemented Interfaces:
ChannelVerifyResult,XrplResult
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableChannelVerifyResult
extends Object
implements ChannelVerifyResult
Immutable implementation of
ChannelVerifyResult.
Use the builder to create immutable instances:
ImmutableChannelVerifyResult.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableChannelVerifyResult. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableChannelVerifyResult.static ImmutableChannelVerifyResultcopyOf(ChannelVerifyResult instance) Creates an immutable copy of aChannelVerifyResultvalue.booleanThis instance is equal to all instances ofImmutableChannelVerifyResultthat have equal attribute values.inthashCode()Computes a hash code from attributes:status,signatureVerified.booleanIftrue, the signature is valid for the stated amount, channel, and public key.status()The value"success"indicates the request was successfully received and understood by the server.toString()Prints the immutable valueChannelVerifyResultwith attribute values.withSignatureVerified(boolean value) Copy the current immutable object by setting a value for thesignatureVerifiedattribute.withStatus(String value) Copy the current immutable object by setting a present value for the optionalstatusattribute.withStatus(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusattribute.
-
Method Details
-
status
The value"success"indicates the request was successfully received and understood by the server.- Specified by:
statusin interfaceXrplResult- Returns:
- The
String"success"if the request was successful, otherwiseOptional.empty().
-
signatureVerified
public boolean signatureVerified()Iftrue, the signature is valid for the stated amount, channel, and public key.- Specified by:
signatureVerifiedin interfaceChannelVerifyResult- Returns:
trueif the signature was valid, otherwisefalse.
-
withStatus
Copy the current immutable object by setting a present value for the optionalstatusattribute.- Parameters:
value- The value for status- Returns:
- A modified copy of
thisobject
-
withStatus
Copy the current immutable object by setting an optional value for thestatusattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for status- Returns:
- A modified copy of
thisobject
-
withSignatureVerified
Copy the current immutable object by setting a value for thesignatureVerifiedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signatureVerified- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableChannelVerifyResultthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:status,signatureVerified. -
toString
Prints the immutable valueChannelVerifyResultwith attribute values. -
copyOf
Creates an immutable copy of aChannelVerifyResultvalue. 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 ChannelVerifyResult instance
-
builder
Creates a builder forImmutableChannelVerifyResult.ImmutableChannelVerifyResult.builder() .status(String) // optionalstatus.signatureVerified(boolean) // requiredsignatureVerified.build();- Returns:
- A new ImmutableChannelVerifyResult builder
-