Class StringToPercentNumberConverter

Object
StringToPercentNumberConverter
All Implemented Interfaces:
Converter<String,BigDecimal>, Serializable

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

    • StringToPercentNumberConverter

      public StringToPercentNumberConverter()
  • Method Details

    • convertToModel

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

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

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

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