Package io.micronaut.starter.api
Class JdkVersionTypeConverter
java.lang.Object
io.micronaut.starter.api.JdkVersionTypeConverter
- All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<String,
JdkVersion>
@Singleton
public class JdkVersionTypeConverter
extends Object
implements io.micronaut.core.convert.TypeConverter<String,JdkVersion>
Type converter required to convert strings such as "JDK_21" to JdkVersion objects for api REST calls.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(String object, Class<JdkVersion> 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
-
JdkVersionTypeConverter
public JdkVersionTypeConverter()
-
-
Method Details
-
convert
public Optional<JdkVersion> convert(String object, Class<JdkVersion> targetType, io.micronaut.core.convert.ConversionContext context) - Specified by:
convert
in interfaceio.micronaut.core.convert.TypeConverter<String,
JdkVersion>
-