Class TransferFee
java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<com.google.common.primitives.UnsignedInteger>
org.xrpl.xrpl4j.model.transactions.TransferFee
- All Implemented Interfaces:
Serializable,Comparable<Wrapper<com.google.common.primitives.UnsignedInteger>>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class TransferFee
extends Wrapper<com.google.common.primitives.UnsignedInteger>
A wrapped
UnsignedInteger containing the TransferFee.
Valid values for this field are between 0 and 50000 inclusive, allowing transfer rates of between 0.00% and
50.00% in increments of 0.001. If this field is provided in a NfTokenMint transaction, the transaction MUST
have the tfTransferable flag enabled.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransferFeeof(com.google.common.primitives.UnsignedInteger value) Construct a new immutableTransferFeeinstance.static TransferFeeofPercent(BigDecimal percent) ConstructTransferFeeas a percentage value.toString()voidValidates that a NfTokenId value's length is equal to 64 characters.com.google.common.primitives.UnsignedIntegervalue()The wrapped value.
-
Method Details
-
value
public com.google.common.primitives.UnsignedInteger value()The wrapped value. -
of
Construct a new immutableTransferFeeinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable TransferFee instance
-
toString
-
ofPercent
ConstructTransferFeeas a percentage value.The given percentage value must have at most 3 decimal places of precision, and must be between
0and50.000.- Parameters:
percent- of typeBigDecimal- Returns:
TransferFee
-
validateBounds
@Check public void validateBounds()Validates that a NfTokenId value's length is equal to 64 characters.
-