public static class HintValueConverter.StringToInteger extends Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger| Constructor and Description |
|---|
HintValueConverter.StringToInteger()
Construct a converter that will simply translate a numeric string to a integer.
|
HintValueConverter.StringToInteger(String[] strings,
int[] numbers)
Construct a converter that will translate any of the given strings to corresponding integer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class<?> cls)
Affirm if this receiver can convert the value of the given type.
|
Object |
convert(Object s)
Convert the user-specified value to a kernel consumable value.
|
public HintValueConverter.StringToInteger()
public HintValueConverter.StringToInteger(String[] strings, int[] numbers)
strings - numbers - public Object convert(Object s)
HintValueConverterconvert in interface HintValueConverters - the user-specified valuepublic boolean canConvert(Class<?> cls)
HintValueConvertercanConvert in interface HintValueConverterCopyright © 2006–2017 Apache Software Foundation. All rights reserved.