Enum TypeInference.DataType

    • Enum Constant Detail

      • ORDINAL

        public static final TypeInference.DataType ORDINAL
        Ordinal variable. Stored as short by convention.
      • NUMERICAL

        public static final TypeInference.DataType NUMERICAL
        Numerical variable. Any numeric except of short which is reserved for ordinal variables.
      • CATEGORICAL

        public static final TypeInference.DataType CATEGORICAL
        Categorical variable. Any value that is non numeric or boolean.
    • Method Detail

      • values

        public static TypeInference.DataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeInference.DataType c : TypeInference.DataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeInference.DataType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • parse

        public static Object parse​(String s,
                                   TypeInference.DataType dataType)
        Takes a String and tries to translate it to the provided DataType. The result value is always casted to Object.
        Parameters:
        s -
        dataType -
        Returns: