Class BigDecimalTypeConverter

  • All Implemented Interfaces:
    TypeConverter<java.lang.String,​java.math.BigDecimal>

    public class BigDecimalTypeConverter
    extends java.lang.Object
    implements TypeConverter<java.lang.String,​java.math.BigDecimal>
    BigDecimal type converter. Does not accept null or empty strings.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.math.BigDecimal convert​(java.lang.String value)
      Convert a source type into a target type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BigDecimalTypeConverter

        public BigDecimalTypeConverter()
    • Method Detail

      • convert

        public java.math.BigDecimal convert​(java.lang.String value)
        Convert a source type into a target type.
        Specified by:
        convert in interface TypeConverter<java.lang.String,​java.math.BigDecimal>
        Parameters:
        value - the input value to convert
        Returns:
        The converted value