Class DecimalFormat
- java.lang.Object
-
- com.vmware.vipclient.i18n.l2.text.NumberFormat
-
- com.vmware.vipclient.i18n.l2.text.DecimalFormat
-
public class DecimalFormat extends NumberFormat
-
-
Field Summary
-
Fields inherited from class com.vmware.vipclient.i18n.l2.text.NumberFormat
CURRENCYSTYLE, INTEGERSTYLE, NUMBERSTYLE, PERCENTSTYLE, SCIENTIFICSTYLE, STANDARDCURRENCYSTYLE
-
-
Constructor Summary
Constructors Constructor Description DecimalFormat(org.json.JSONObject formatData, int style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(double value, Integer fractionSize)Stringformat(long value, Integer fractionSize)Stringformat(String value, Integer fractionSize)Stringformat(BigDecimal value, Integer fractionSize)Stringformat(BigInteger value, Integer fractionSize)StringparseNumber(String numStr, Integer customizedFractionSize)NumberPatternInfoparsePattern(String pattern)-
Methods inherited from class com.vmware.vipclient.i18n.l2.text.NumberFormat
format, getInstance, getPattern
-
-
-
-
Method Detail
-
format
public String format(long value, Integer fractionSize)
- Specified by:
formatin classNumberFormat
-
format
public String format(double value, Integer fractionSize)
- Specified by:
formatin classNumberFormat
-
format
public String format(BigInteger value, Integer fractionSize)
- Specified by:
formatin classNumberFormat
-
format
public String format(BigDecimal value, Integer fractionSize)
- Specified by:
formatin classNumberFormat
-
format
public String format(String value, Integer fractionSize)
- Specified by:
formatin classNumberFormat
-
parsePattern
public NumberPatternInfo parsePattern(String pattern)
-
-