Interface Monetary

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    Coin, Fiat

    public interface Monetary
    extends java.io.Serializable
    Classes implementing this interface represent a monetary value, such as a Bitcoin or fiat amount.
    • Method Detail

      • smallestUnitExponent

        int smallestUnitExponent()
        Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation. For Bitcoin, a satoshi is worth 1E-8 so this would be 8.
      • getValue

        long getValue()
        Returns the number of "smallest units" of this monetary value. For Bitcoin, this would be the number of satoshis.
      • signum

        int signum()