Class StringToIntegerConverter

Object
StringToIntegerConverter
All Implemented Interfaces:
Converter<String,Integer>, Serializable

public class StringToIntegerConverter extends Object implements Converter<String,Integer>
See Also:
  • Constructor Details

    • StringToIntegerConverter

      public StringToIntegerConverter()
  • Method Details

    • convertToModel

      public Integer convertToModel(String value, Class<? extends Integer> targetType, Locale locale) throws Converter.ConversionException
      Specified by:
      convertToModel in interface Converter<String,Integer>
      Throws:
      Converter.ConversionException
    • convertToPresentation

      public String convertToPresentation(Integer value, Class<? extends String> targetType, Locale locale) throws Converter.ConversionException
      Specified by:
      convertToPresentation in interface Converter<String,Integer>
      Throws:
      Converter.ConversionException
    • getModelType

      public Class<Integer> getModelType()
      Specified by:
      getModelType in interface Converter<String,Integer>
    • getPresentationType

      public Class<String> getPresentationType()
      Specified by:
      getPresentationType in interface Converter<String,Integer>