Class ShortLocaleConverter
java.lang.Object
org.apache.commons.beanutils2.locale.BaseLocaleConverter<Short>
org.apache.commons.beanutils2.locale.converters.DecimalLocaleConverter<Short>
org.apache.commons.beanutils2.locale.converters.ShortLocaleConverter
- All Implemented Interfaces:
- Converter<Short>,- LocaleConverter<Short>
Standard 
LocaleConverter implementation that converts an incoming locale-sensitive String into a Short
 object, optionally using a default value or throwing a ConversionException if a conversion error occurs.- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class org.apache.commons.beanutils2.locale.BaseLocaleConverterdefaultValue, locale, localizedPattern, pattern, useDefault
- 
Method SummaryMethods inherited from class org.apache.commons.beanutils2.locale.BaseLocaleConverterconvert, convert, convert, convert
- 
Method Details- 
builderConstructs a new builder.- Returns:
- a new builder.
 
- 
parseParses the specified locale-sensitive input object into an output object of the specified type. This method will return values of type Short.- Overrides:
- parsein class- DecimalLocaleConverter<Short>
- Parameters:
- value- The input object to be converted
- pattern- The pattern is used for the conversion
- Returns:
- The converted value
- Throws:
- ConversionException- if conversion cannot be performed successfully
- ParseException- if an error occurs parsing a String to a Number
- Since:
- 1.8.0
 
 
-