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.ParameterConverter
public Object convertValue(String value, Type type)
convertValue
in interface ParameterConverters.ParameterConverter
Copyright © 2003–2015. All rights reserved.