ma.glasnost.orika.converter.builtin
Class NumericConverters.BigDecimalToDoubleConverter
java.lang.Object
ma.glasnost.orika.CustomConverter<Object,Object>
ma.glasnost.orika.converter.BidirectionalConverter<BigDecimal,Double>
ma.glasnost.orika.converter.builtin.NumericConverters.BigDecimalToDoubleConverter
- All Implemented Interfaces:
- Converter<Object,Object>, MappedTypePair<Object,Object>
- Enclosing class:
- NumericConverters
public static class NumericConverters.BigDecimalToDoubleConverter
- extends BidirectionalConverter<BigDecimal,Double>
Provides conversion between BigDecimal and Double.
Note: please consider the typical warnings regarding
loss of precision when converting from BigDecimal to Double.
- Author:
- matt.deboer@gmail.com
- See Also:
BigDecimal.doubleValue()
NumericConverters.BigDecimalToDoubleConverter
public NumericConverters.BigDecimalToDoubleConverter()
convertTo
public Double convertTo(BigDecimal source,
Type<Double> destinationType)
- Specified by:
convertTo in class BidirectionalConverter<BigDecimal,Double>
convertFrom
public BigDecimal convertFrom(Double source,
Type<BigDecimal> destinationType)
- Specified by:
convertFrom in class BidirectionalConverter<BigDecimal,Double>
Copyright © 2013 Glasnost. All Rights Reserved.