public static class EnumConverters.StringToEnumConverter<E extends Enum<E>> extends Object implements ValueConverter<E>
| Constructor and Description |
|---|
StringToEnumConverter(Class<E> enumClass) |
| Modifier and Type | Method and Description |
|---|---|
E |
convert(Object value)
Converts the given value into the target type
V if it is not null
and if such a conversion is supported by this converter. |
public StringToEnumConverter(Class<E> enumClass)
public E convert(Object value) throws IllegalArgumentException
ValueConverterV if it is not null
and if such a conversion is supported by this converter. Returns null if
the specified value is null or if the value cannot be converted.convert in interface ValueConverter<E extends Enum<E>>value - the unconverted valueIllegalArgumentExceptionCopyright © 2025. All rights reserved.