Class BigDecimalLocaleConverter
java.lang.Object
org.apache.commons.beanutils2.locale.BaseLocaleConverter<BigDecimal>
org.apache.commons.beanutils2.locale.converters.DecimalLocaleConverter<BigDecimal>
org.apache.commons.beanutils2.locale.converters.BigDecimalLocaleConverter
- All Implemented Interfaces:
- Converter<BigDecimal>,- LocaleConverter<BigDecimal>
Standard 
LocaleConverter implementation that converts an incoming locale-sensitive String into a
 BigDecimal 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 SummaryModifier and TypeMethodDescriptionbuilder()Constructs a new builder.protected BigDecimalParses the specified locale-sensitive input object into an output object of BigDecimal type.Methods 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 BigDecimal type.- Overrides:
- parsein class- DecimalLocaleConverter<BigDecimal>
- 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
 
 
-