Class Parsers


  • public class Parsers
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getPrice​(double price)
      Returns string representation of input parameter price according to the given formatting parameters
      static java.lang.String getPrice​(java.lang.String price, java.lang.String currSymbol)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPrice

        public static java.lang.String getPrice​(double price)
        Returns string representation of input parameter price according to the given formatting parameters
        Parameters:
        price - value to be returned
        Returns:
        formatted string representing price
      • getPrice

        public static java.lang.String getPrice​(java.lang.String price,
                                                java.lang.String currSymbol)
        Parameters:
        price -
        currSymbol -
        Returns:
        formatted price string