@groovy.transform.CompileStatic class LocaleAwareNumberConverter extends java.lang.Object
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 |
---|---|
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(long), java.lang.Object#wait(), 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() |