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 Details

    • value

      public com.google.common.primitives.UnsignedInteger value()
      The wrapped value.
      Specified by:
      value in class Wrapper<com.google.common.primitives.UnsignedInteger>
      Returns:
      The wrapped value.
    • of

      public static VoteWeight of(com.google.common.primitives.UnsignedInteger value)
      Construct a new immutable VoteWeight instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable VoteWeight instance
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<com.google.common.primitives.UnsignedInteger>
    • bigDecimalValue

      public BigDecimal bigDecimalValue()
      Get the VoteWeight as a BigDecimal.
      Returns:
      A BigDecimal.