Class ParameterConverters.NumberListConverter

All Implemented Interfaces:
Enclosing class:

public static class ParameterConverters.NumberListConverter extends ParameterConverters.AbstractListParameterConverter<Number>
Converts value to list of numbers. Splits value to a list, using an injectable value separator (defaulting to ",") and converts each element of list via the ParameterConverters.NumberConverter, using the NumberFormat provided (defaulting to NumberFormat.getInstance() ).
  • Constructor Details

    • NumberListConverter

      public NumberListConverter()
    • NumberListConverter

      public NumberListConverter(NumberFormat numberFormat, String valueSeparator)
      Creates converter for a list of numbers using the specified number format and value separator
      numberFormat - Specific NumberFormat to use.
      valueSeparator - A regexp to use as list separate