Class ImmutableChannelVerifyRequestParams
java.lang.Object
org.xrpl.xrpl4j.model.client.channels.ImmutableChannelVerifyRequestParams
- All Implemented Interfaces:
ChannelVerifyRequestParams,XrplRequestParams
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableChannelVerifyRequestParams
extends Object
implements ChannelVerifyRequestParams
Immutable implementation of
ChannelVerifyRequestParams.
Use the builder to create immutable instances:
ImmutableChannelVerifyRequestParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableChannelVerifyRequestParams. -
Method Summary
Modifier and TypeMethodDescriptionamount()The amount of XRP, in drops, the providedsignature()authorizes.builder()Creates a builder forImmutableChannelVerifyRequestParams.The Channel ID of the channel that provides the XRP.copyOf(ChannelVerifyRequestParams instance) Creates an immutable copy of aChannelVerifyRequestParamsvalue.booleanThis instance is equal to all instances ofImmutableChannelVerifyRequestParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:amount,channelId,publicKey,signature.The public key of the channel and the key pair that was used to create thesignature(), in hexadecimal or the XRP Ledger's base58 format.The signature to verify, in hexadecimal.toString()Prints the immutable valueChannelVerifyRequestParamswith attribute values.withAmount(XrpCurrencyAmount value) Copy the current immutable object by setting a value for theamountattribute.withChannelId(Hash256 value) Copy the current immutable object by setting a value for thechannelIdattribute.withPublicKey(String value) Copy the current immutable object by setting a value for thepublicKeyattribute.withSignature(String value) Copy the current immutable object by setting a value for thesignatureattribute.
-
Method Details
-
amount
The amount of XRP, in drops, the providedsignature()authorizes.- Specified by:
amountin interfaceChannelVerifyRequestParams- Returns:
- the xrp currency amount
-
channelId
The Channel ID of the channel that provides the XRP.- Specified by:
channelIdin interfaceChannelVerifyRequestParams- Returns:
- the hash 256
-
publicKey
The public key of the channel and the key pair that was used to create thesignature(), in hexadecimal or the XRP Ledger's base58 format.- Specified by:
publicKeyin interfaceChannelVerifyRequestParams- Returns:
- A
Stringcontaining the public key.
-
signature
The signature to verify, in hexadecimal.- Specified by:
signaturein interfaceChannelVerifyRequestParams- Returns:
- A
Stringcontaining the signature.
-
withAmount
Copy the current immutable object by setting a value for theamountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for amount- Returns:
- A modified copy of the
thisobject
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy of the
thisobject
-
withPublicKey
Copy the current immutable object by setting a value for thepublicKeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for publicKey- Returns:
- A modified copy of the
thisobject
-
withSignature
Copy the current immutable object by setting a value for thesignatureattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for signature- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableChannelVerifyRequestParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:amount,channelId,publicKey,signature. -
toString
Prints the immutable valueChannelVerifyRequestParamswith attribute values. -
copyOf
Creates an immutable copy of aChannelVerifyRequestParamsvalue. 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 ChannelVerifyRequestParams instance
-
builder
Creates a builder forImmutableChannelVerifyRequestParams.ImmutableChannelVerifyRequestParams.builder() .amount(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // requiredamount.channelId(org.xrpl.xrpl4j.model.transactions.Hash256) // requiredchannelId.publicKey(String) // requiredpublicKey.signature(String) // requiredsignature.build();- Returns:
- A new ImmutableChannelVerifyRequestParams builder
-