Package org.teavm.classlib.java.text
Class TDecimalFormat
java.lang.Object
org.teavm.classlib.java.text.TFormat
org.teavm.classlib.java.text.TNumberFormat
org.teavm.classlib.java.text.TDecimalFormat
- All Implemented Interfaces:
TSerializable
,TCloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.teavm.classlib.java.text.TNumberFormat
TNumberFormat.Field
-
Field Summary
Fields inherited from class org.teavm.classlib.java.text.TNumberFormat
FRACTION_FIELD, INTEGER_FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionTDecimalFormat
(String pattern) TDecimalFormat
(String pattern, TDecimalFormatSymbols value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyPattern
(String pattern) clone()
boolean
format
(double value, StringBuffer buffer, TFieldPosition field) format
(long value, StringBuffer buffer, TFieldPosition field) format
(Object object, StringBuffer buffer, TFieldPosition field) int
int
int
hashCode()
boolean
boolean
parse
(String string, TParsePosition position) void
void
setDecimalSeparatorAlwaysShown
(boolean newValue) void
setGroupingSize
(int newValue) void
setMultiplier
(int newValue) void
setNegativePrefix
(String newValue) void
setNegativeSuffix
(String newValue) void
setParseBigDecimal
(boolean newValue) void
setPositivePrefix
(String newValue) void
setPositiveSuffix
(String newValue) Methods inherited from class org.teavm.classlib.java.text.TNumberFormat
format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
Methods inherited from class org.teavm.classlib.java.text.TFormat
format, formatToCharacterIterator, parseObject
-
Constructor Details
-
TDecimalFormat
public TDecimalFormat() -
TDecimalFormat
-
TDecimalFormat
-
-
Method Details
-
applyPattern
-
getDecimalFormatSymbols
-
setDecimalFormatSymbols
-
getPositivePrefix
-
setPositivePrefix
-
getNegativePrefix
-
setNegativePrefix
-
getPositiveSuffix
-
setPositiveSuffix
-
getNegativeSuffix
-
setNegativeSuffix
-
getMultiplier
public int getMultiplier() -
setMultiplier
public void setMultiplier(int newValue) -
getGroupingSize
public int getGroupingSize() -
setGroupingSize
public void setGroupingSize(int newValue) -
isDecimalSeparatorAlwaysShown
public boolean isDecimalSeparatorAlwaysShown() -
setDecimalSeparatorAlwaysShown
public void setDecimalSeparatorAlwaysShown(boolean newValue) -
isParseBigDecimal
public boolean isParseBigDecimal() -
setParseBigDecimal
public void setParseBigDecimal(boolean newValue) -
clone
- Overrides:
clone
in classTNumberFormat
-
equals
- Overrides:
equals
in classTNumberFormat
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTNumberFormat
-
parse
- Specified by:
parse
in classTNumberFormat
-
format
- Overrides:
format
in classTNumberFormat
-
format
- Specified by:
format
in classTNumberFormat
-
format
- Specified by:
format
in classTNumberFormat
-