@CompileStatic class LocaleAwareNumberConverter extends Object implements ValueConverter
A ValueConverter that knows how to convert a String to any numeric type and is Locale aware. The converter will use the Locale of the current request if being invoked as part of a request, otherwise will use Locale.getDefault()
Type | Name and description |
---|---|
LocaleResolver |
localeResolver |
Class<?> |
targetType |
Constructor and description |
---|
LocaleAwareNumberConverter() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
canConvert(Object value) |
|
Object |
convert(Object value) |
|
protected Locale |
getLocale() |
|
protected NumberFormat |
getNumberFormatter() |