Package io.micronaut.views.freemarker
Class VersionTypeConverter
java.lang.Object
io.micronaut.views.freemarker.VersionTypeConverter
- All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,
freemarker.template.Version>
@Singleton
public class VersionTypeConverter
extends Object
implements io.micronaut.core.convert.TypeConverter<CharSequence,freemarker.template.Version>
Type converter for a string to a
Version
.- Since:
- 1.1.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<freemarker.template.Version>
convert
(CharSequence object, Class<freemarker.template.Version> targetType, io.micronaut.core.convert.ConversionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.TypeConverter
convert
-
Constructor Details
-
VersionTypeConverter
public VersionTypeConverter()
-
-
Method Details
-
convert
public Optional<freemarker.template.Version> convert(CharSequence object, Class<freemarker.template.Version> targetType, io.micronaut.core.convert.ConversionContext context) - Specified by:
convert
in interfaceio.micronaut.core.convert.TypeConverter<CharSequence,
freemarker.template.Version>
-