public static class HintValueConverter.StringToInteger extends Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger| Constructor and Description | 
|---|
StringToInteger()
Construct a converter that will simply translate a numeric string to a integer. 
 | 
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 StringToInteger()
public 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–2018 Apache Software Foundation. All rights reserved.