public class LongConverter extends AbstractIntegerConverter<Long>
Modifier and Type | Field and Description |
---|---|
static IConverter<Long> |
INSTANCE
The singleton instance for a long converter
|
Constructor and Description |
---|
LongConverter() |
Modifier and Type | Method and Description |
---|---|
Long |
convertToObject(String value,
Locale locale)
Converts the given
String value |
protected Class<Long> |
getTargetType() |
newNumberFormat
convertToString, getNumberFormat, parse
newConversionException, parse
public static final IConverter<Long> INSTANCE
public Long 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<Long> getTargetType()
getTargetType
in class AbstractConverter<Long>
AbstractConverter.getTargetType()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.