public class ShortConverter extends AbstractIntegerConverter<Short>
Modifier and Type | Field and Description |
---|---|
static IConverter<Short> |
INSTANCE
The singleton instance for a short converter
|
Constructor and Description |
---|
ShortConverter() |
Modifier and Type | Method and Description |
---|---|
Short |
convertToObject(String value,
Locale locale)
Converts the given
String value |
protected Class<Short> |
getTargetType() |
newNumberFormat
convertToString, getNumberFormat, parse
newConversionException, parse
public static final IConverter<Short> INSTANCE
public Short convertToObject(String value, Locale locale)
IConverter
String
valuevalue
- The string value to convertlocale
- The locale used to convert the valueIConverter.convertToObject(java.lang.String,Locale)
protected Class<Short> getTargetType()
getTargetType
in class AbstractConverter<Short>
AbstractConverter.getTargetType()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.