Class IntegralType

  • All Implemented Interfaces:
    NumberType

    public class IntegralType
    extends NumericType
    This class represents the types byte, short int, long and char
    Version:
    0.1
    Author:
    Michael Bouschen
    • Constructor Detail

      • IntegralType

        public IntegralType​(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 Long, if this represents the numeric type long.
        Specified by:
        getValue in interface NumberType
        Specified by:
        getValue in class NumericType
        Parameters:
        value - value to be converted
        Returns:
        converted value