public static class HintValueConverter.EnumToInteger extends Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger
Constructor and Description |
---|
EnumToInteger(Class<? extends Enum<?>> enumType,
int[] numbers) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class<?> type)
Affirm if this receiver can convert the value of the given type.
|
Object |
convert(Object e)
Convert the user-specified value to a kernel consumable value.
|
public Object convert(Object e)
HintValueConverter
convert
in interface HintValueConverter
e
- the user-specified valuepublic boolean canConvert(Class<?> type)
HintValueConverter
canConvert
in interface HintValueConverter
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.