Class Price


  • public class Price
    extends java.lang.Object
    This class is Price model class. Price consists of the amount, symbol and currency.

    The currency is based on the ISO 4217 currency code.
    • Constructor Summary

      Constructors 
      Constructor Description
      Price​(JSONObject jsonObject)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAmount()
      Gets the cost of the item.
      java.lang.String getCurrency()
      Gets the currency code.
      java.lang.String getSymbol()
      Gets the currency symbol.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Price

        public Price​(JSONObject jsonObject)
    • Method Detail

      • getAmount

        public java.lang.String getAmount()
        Gets the cost of the item.
      • getSymbol

        public java.lang.String getSymbol()
        Gets the currency symbol. Example: symbol for United States is the dollar sign $, Great Britian is the pound sign £ and the Euro is €
      • getCurrency

        public java.lang.String getCurrency()
        Gets the currency code. Examples: United States dollar is USD, Japan is JPY and the Euro is EUR.