Class BaseNumberTypeConverter

    • Constructor Detail

      • BaseNumberTypeConverter

        public BaseNumberTypeConverter()
    • Method Detail

      • convert

        public final Object convert​(Object object,
                                    Type... parameters)
                             throws TypeConversionException
        Description copied from interface: TypeConverter
        Converts an object from one type to another.
        Specified by:
        convert in interface TypeConverter
        Parameters:
        object - the source object
        parameters - the optional type parameters when using Generics.
        Returns:
        the converted object
        Throws:
        TypeConversionException - the source object was not able to be converted to the target type
      • convertNumber

        protected abstract Object convertNumber​(Number number)