public class PercentConverter extends NumberFormatConverter
| Modifier and Type | Field and Description |
|---|---|
static ConverterContext |
CONTEXT |
CONTEXT_FRACTION_NUMBER| Constructor and Description |
|---|
PercentConverter() |
PercentConverter(NumberFormat format) |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromString(String string,
ConverterContext context)
Converts from String to an object.
|
supportFromStringgetDefaultNumberFormat, getNumberFormat, isAvoidNegativeZero, isGroupingUsed, parseNumber, setAvoidNegativeZero, setCurrency, setFractionDigits, setGroupingUsed, setIntegerDigits, setNumberFormat, setRoundingMode, supportToString, toStringpublic static ConverterContext CONTEXT
public PercentConverter()
public PercentConverter(NumberFormat format)
public Object fromString(String string, ConverterContext context)
ObjectConverterfromString in interface ObjectConverterfromString in class NumberFormatConverterstring - the stringcontext - context to be convertedCopyright © 2017. All rights reserved.