Object
LongMinuteDurationFieldConverter
- All Implemented Interfaces:
Converter<String,Long>, Serializable
public class LongMinuteDurationFieldConverter
extends Object
implements Converter<String,Long>
Converte notacao de duracao em horas/minutos (00:00) em um integral de minutos
- Author:
- eduardo
- See Also:
-
-
Nested Class Summary
Nested classes/interfaces inherited from interface Converter
Converter.ConversionException
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LongMinuteDurationFieldConverter
public LongMinuteDurationFieldConverter()
-
Method Details
-
convertToModel
public Long convertToModel(String value,
Class<? extends Long> targetType,
Locale locale)
throws Converter.ConversionException
- Specified by:
convertToModel in interface Converter<String,Long>
- Throws:
Converter.ConversionException
-
convertToPresentation
public String convertToPresentation(Long value,
Class<? extends String> targetType,
Locale locale)
throws Converter.ConversionException
- Specified by:
convertToPresentation in interface Converter<String,Long>
- Throws:
Converter.ConversionException
-
-
getModelType
- Specified by:
getModelType in interface Converter<String,Long>
-
getPresentationType
- Specified by:
getPresentationType in interface Converter<String,Long>