Enum DataType

    • Enum Constant Detail

      • STRING

        public static final DataType STRING
      • NUMBER

        public static final DataType NUMBER
      • DATE

        public static final DataType DATE
      • BOOLEAN

        public static final DataType BOOLEAN
      • DATETIME

        public static final DataType DATETIME
      • LONG

        public static final DataType LONG
      • UNKNOWN

        public static final DataType UNKNOWN
    • Method Detail

      • values

        public static 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 (DataType c : 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 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
      • numberToString

        public static String numberToString​(Number number,
                                            int numberOfDecimals)
      • deserialize

        public Object deserialize​(String sValue)
      • isAssignable

        public boolean isAssignable​(Object value)
      • isNumeric

        public boolean isNumeric()
      • isTime

        public boolean isTime()
      • toDataType

        public static DataType toDataType​(Class<?> clazz)
      • isBoolean

        public static boolean isBoolean​(Object value)
      • isDate

        public static boolean isDate​(Object value)
      • isDateTime

        public static boolean isDateTime​(Object value)
      • isNumber

        public static boolean isNumber​(Object value)
      • isLong

        public static boolean isLong​(Object value)