Class MinuteDurationFieldConverter

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

public class MinuteDurationFieldConverter extends Object implements Converter<String,Integer>
Converte notacao de duracao em horas/minutos (00:00) em um integral de minutos
Author:
eduardo
See Also:
  • Constructor Details

    • MinuteDurationFieldConverter

      public MinuteDurationFieldConverter()
  • 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>