public static class ParameterConverters.NumberListConverter extends Object implements ParameterConverters.ParameterConverter
ParameterConverters.NumberConverter, using the NumberFormat
provided (defaulting to NumberFormat#getInstance(Locale.ENGLISH)
).| Constructor and Description |
|---|
NumberListConverter() |
NumberListConverter(NumberFormat numberFormat,
String valueSeparator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Type type) |
Object |
convertValue(String value,
Type type) |
public NumberListConverter()
public NumberListConverter(NumberFormat numberFormat, String valueSeparator)
numberFormat - Specific NumberFormat to use.valueSeparator - A regexp to use as list separatepublic boolean accept(Type type)
accept in interface ParameterConverters.ParameterConverterpublic Object convertValue(String value, Type type)
convertValue in interface ParameterConverters.ParameterConverterCopyright © 2003–2016. All rights reserved.