@groovy.transform.CompileStatic class LocaleAwareNumberConverter extends java.lang.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()
Modifiers | Name | Description |
---|---|---|
private org.springframework.web.servlet.LocaleResolver |
localeResolver |
|
private java.lang.Class<?> |
targetType |
Type | Name and description |
---|---|
org.springframework.web.servlet.LocaleResolver |
localeResolver |
java.lang.Class<?> |
targetType |
Constructor and description |
---|
LocaleAwareNumberConverter
() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
canConvert(java.lang.Object value) |
|
java.lang.Object |
convert(java.lang.Object value) |
|
protected java.util.Locale |
getLocale() |
|
protected java.text.NumberFormat |
getNumberFormatter() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation