public static class OptionSetConverters.AcronymStringToOptionSetConverter<O extends Enum<O> & Option> extends Object implements ValueConverter<OptionSet<O>>
Constructor and Description |
---|
AcronymStringToOptionSetConverter(Class<O> optionEnumClass) |
Modifier and Type | Method and Description |
---|---|
OptionSet<O> |
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 AcronymStringToOptionSetConverter(Class<O> optionEnumClass)
public OptionSet<O> convert(Object value) throws IllegalArgumentException
ValueConverter
V
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<OptionSet<O extends Enum<O> & Option>>
value
- the unconverted valueIllegalArgumentException
Copyright © 2024. All rights reserved.