Class VoteWeight
java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<com.google.common.primitives.UnsignedInteger>
org.xrpl.xrpl4j.model.transactions.VoteWeight
- All Implemented Interfaces:
Serializable,Comparable<Wrapper<com.google.common.primitives.UnsignedInteger>>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class VoteWeight
extends Wrapper<com.google.common.primitives.UnsignedInteger>
A wrapped
UnsignedInteger containing the VoteWeight.
This class will be marked Beta until the AMM amendment is enabled on
mainnet. Its API is subject to change.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet theVoteWeightas aBigDecimal.static VoteWeightof(com.google.common.primitives.UnsignedInteger value) Construct a new immutableVoteWeightinstance.toString()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 immutableVoteWeightinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable VoteWeight instance
-
toString
-
bigDecimalValue
Get theVoteWeightas aBigDecimal.- Returns:
- A
BigDecimal.
-