Class ImmutableUnsignedClaim
java.lang.Object
org.xrpl.xrpl4j.model.client.channels.ImmutableUnsignedClaim
- All Implemented Interfaces:
UnsignedClaim
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableUnsignedClaim
extends Object
implements UnsignedClaim
Immutable implementation of
UnsignedClaim.
Use the builder to create immutable instances:
ImmutableUnsignedClaim.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUnsignedClaim. -
Method Summary
Modifier and TypeMethodDescriptionamount()The amount of XRP, in drops, that the signature of this claim authorizes.builder()Creates a builder forImmutableUnsignedClaim.channel()The Channel ID of the channel that provides the XRP.static ImmutableUnsignedClaimcopyOf(UnsignedClaim instance) Creates an immutable copy of aUnsignedClaimvalue.booleanThis instance is equal to all instances ofImmutableUnsignedClaimthat have equal attribute values.inthashCode()Computes a hash code from attributes:channel,amount.toString()Prints the immutable valueUnsignedClaimwith attribute values.final ImmutableUnsignedClaimwithAmount(XrpCurrencyAmount value) Copy the current immutable object by setting a value for theamountattribute.final ImmutableUnsignedClaimwithChannel(Hash256 value) Copy the current immutable object by setting a value for thechannelattribute.
-
Method Details
-
channel
The Channel ID of the channel that provides the XRP.- Specified by:
channelin interfaceUnsignedClaim- Returns:
- A
Hash256containing the Channel ID.
-
amount
The amount of XRP, in drops, that the signature of this claim authorizes.- Specified by:
amountin interfaceUnsignedClaim- Returns:
- An
XrpCurrencyAmountrepresenting the amount of the claim.
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy of the
thisobject
-
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
-
equals
This instance is equal to all instances ofImmutableUnsignedClaimthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channel,amount. -
toString
Prints the immutable valueUnsignedClaimwith attribute values. -
copyOf
Creates an immutable copy of aUnsignedClaimvalue. 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 UnsignedClaim instance
-
builder
Creates a builder forImmutableUnsignedClaim.ImmutableUnsignedClaim.builder() .channel(org.xrpl.xrpl4j.model.transactions.Hash256) // requiredchannel.amount(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // requiredamount.build();- Returns:
- A new ImmutableUnsignedClaim builder
-