Class NumberFormat
- java.lang.Object
-
- com.vmware.vipclient.i18n.l2.text.NumberFormat
-
- Direct Known Subclasses:
DecimalFormat
public abstract class NumberFormat extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCURRENCYSTYLEstatic intINTEGERSTYLEstatic intNUMBERSTYLEstatic intPERCENTSTYLEstatic intSCIENTIFICSTYLEstatic intSTANDARDCURRENCYSTYLE
-
Constructor Summary
Constructors Constructor Description NumberFormat()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Stringformat(double value, Integer fractionSize)abstract Stringformat(long value, Integer fractionSize)Stringformat(Object value, Integer fractionSize)abstract Stringformat(String value, Integer fractionSize)abstract Stringformat(BigDecimal value, Integer fractionSize)abstract Stringformat(BigInteger value, Integer fractionSize)static NumberFormatgetInstance(org.json.JSONObject patterns, int style)static StringgetPattern(org.json.JSONObject numberFormats, int style)
-
-
-
Field Detail
-
NUMBERSTYLE
public static final int NUMBERSTYLE
- See Also:
- Constant Field Values
-
CURRENCYSTYLE
public static final int CURRENCYSTYLE
- See Also:
- Constant Field Values
-
PERCENTSTYLE
public static final int PERCENTSTYLE
- See Also:
- Constant Field Values
-
SCIENTIFICSTYLE
public static final int SCIENTIFICSTYLE
- See Also:
- Constant Field Values
-
INTEGERSTYLE
public static final int INTEGERSTYLE
- See Also:
- Constant Field Values
-
STANDARDCURRENCYSTYLE
public static final int STANDARDCURRENCYSTYLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static NumberFormat getInstance(org.json.JSONObject patterns, int style)
-
getPattern
public static String getPattern(org.json.JSONObject numberFormats, int style)
-
format
public abstract String format(BigInteger value, Integer fractionSize)
-
format
public abstract String format(BigDecimal value, Integer fractionSize)
-
-