|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hrodberaht.i18n.formatter.Formatter
org.hrodberaht.i18n.formatter.NumberFormatter
org.hrodberaht.i18n.formatter.PercentageFormatter
public class PercentageFormatter
Simple Java Utils
| Field Summary | |
|---|---|
static int |
PERCENTAGE_SCALE
The default scale for percentage values |
| Fields inherited from class org.hrodberaht.i18n.formatter.Formatter |
|---|
locale |
| Constructor Summary | |
|---|---|
PercentageFormatter()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
convertToObject(java.lang.String target)
Unformats its argument and returns a BigDecimal instance initialized with the resulting string value |
java.lang.String |
convertToString(java.lang.Object value)
Returns a string representation of its argument, formatted as a percentage value. |
| Methods inherited from class org.hrodberaht.i18n.formatter.NumberFormatter |
|---|
fixCharacterJVMErrorsForDecimalFormat, parseNumber |
| Methods inherited from class org.hrodberaht.i18n.formatter.Formatter |
|---|
getFormatter, getFormatter, isSupportedType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PERCENTAGE_SCALE
| Constructor Detail |
|---|
public PercentageFormatter()
| Method Detail |
|---|
public java.lang.Object convertToObject(java.lang.String target)
convertToObject in class Formatterpublic java.lang.String convertToString(java.lang.Object value)
convertToString in class Formatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||