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)
HintValueConverter
convert
in interface HintValueConverter
s
- the user-specified valuepublic boolean canConvert(Class<?> cls)
HintValueConverter
canConvert
in interface HintValueConverter
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.