Class FloatingPointType

  • All Implemented Interfaces:
    NumberType

    public class FloatingPointType
    extends NumericType
    This class represents the types float and double.
    Version:
    0.1
    Author:
    Michael Bouschen
    • Constructor Detail

      • FloatingPointType

        public FloatingPointType​(String name,
                                 Class clazz,
                                 int enumType)
    • Method Detail

      • getValue

        public Number getValue​(Number value)
        Converts the specified value into a value of this numeric type. E.g. an Integer is converted into a Double, if this represents the numeric type double.
        Specified by:
        getValue in interface NumberType
        Specified by:
        getValue in class NumericType
        Parameters:
        value - value to be converted
        Returns:
        converted value