Class BigDecimalConverter
java.lang.Object
io.leandev.appfuse.converter.BigDecimalConverter
- All Implemented Interfaces:
Converter<BigDecimal>
BigDecimal 類型轉換器
支援從數字、字串轉換為 BigDecimal。 字串解析支援千分位分隔符和正負號。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the given value to the target type.
-
Constructor Details
-
BigDecimalConverter
-
BigDecimalConverter
public BigDecimalConverter()使用預設格式建立轉換器
-
-
Method Details
-
convert
Description copied from interface:ConverterConverts the given value to the target type.- Specified by:
convertin interfaceConverter<BigDecimal>- Parameters:
value- the value to convert- Returns:
- the converted value of type T
- Throws:
ConversionException- if the value cannot be converted
-