@Singleton public static class ParamConverters.TypeFromStringEnum extends ParamConverters.TypeFromString
param converter that produce the target Java enum type instance
by invoking a static fromString(String) method on the target enum type.| Modifier | Constructor and Description |
|---|---|
protected |
TypeFromStringEnum(boolean canReturnNull) |
| Modifier and Type | Method and Description |
|---|---|
<T> ParamConverter<T> |
getConverter(Class<T> rawType,
Type genericType,
Annotation[] annotations) |
public <T> ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
getConverter in interface ParamConverterProvidergetConverter in class ParamConverters.TypeFromStringCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.