java.lang.Object
com.sportradar.mbs.sdk.entities.common.Amount

public class Amount extends Object
Represents an amount with a currency value.
  • Constructor Details

    • Amount

      public Amount()
  • Method Details

    • newBuilder

      public static Amount.Builder newBuilder()
      Returns a new instance of the Amount.Builder class.
      Returns:
      a new instance of the Amount.Builder class
    • getCurrency

      public String getCurrency()
      Gets the currency value of the amount.
      Returns:
      the currency value
    • setCurrency

      public void setCurrency(String value)
      Sets the currency value of the amount.
      Parameters:
      value - the currency value to set
    • getValue

      public BigDecimal getValue()
      Gets the numeric value of the amount.
      Returns:
      the numeric value
    • setValue

      public void setValue(BigDecimal value)
      Sets the numeric value of the amount.
      Parameters:
      value - the numeric value to set