Class LongToBigDecimal


  • public class LongToBigDecimal
    extends Conversion<java.lang.Long,​java.math.BigDecimal>
    A default Integrity conversion.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • LongToBigDecimal

        public LongToBigDecimal()
    • Method Detail

      • convert

        public java.math.BigDecimal convert​(java.lang.Long aSource,
                                            java.lang.Class<? extends java.math.BigDecimal> aTargetType,
                                            ConversionContext aConversionContext)
                                     throws ConversionFailedException
        Description copied from class: Conversion
        Performs the conversion.
        Specified by:
        convert in class Conversion<java.lang.Long,​java.math.BigDecimal>
        Parameters:
        aSource - the source object to convert
        aTargetType - TODO
        aConversionContext - controls some conversion parameters and rules; may be null if the default ConversionContext values shall be used
        Returns:
        the converted object
        Throws:
        ConversionFailedException - in case of conversion errors