Enum Class DataType

java.lang.Object
java.lang.Enum<DataType>
icu.easyj.core.enums.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, Constable

public enum DataType extends Enum<DataType>
数据类型(目前就一些常用的数据类型,可以根据需要再添加一些)
Author:
wangliang181230
  • Enum Constant Details

    • STRING

      public static final DataType STRING
    • CHAR_PRIMITIVE

      public static final DataType CHAR_PRIMITIVE
    • CHARACTER

      public static final DataType CHARACTER
    • SHORT_PRIMITIVE

      public static final DataType SHORT_PRIMITIVE
    • SHORT

      public static final DataType SHORT
    • INT_PRIMITIVE

      public static final DataType INT_PRIMITIVE
    • INTEGER

      public static final DataType INTEGER
    • LONG_PRIMITIVE

      public static final DataType LONG_PRIMITIVE
    • LONG

      public static final DataType LONG
    • BIG_INTEGER

      public static final DataType BIG_INTEGER
    • FLOAT_PRIMITIVE

      public static final DataType FLOAT_PRIMITIVE
    • FLOAT

      public static final DataType FLOAT
    • DOUBLE_PRIMITIVE

      public static final DataType DOUBLE_PRIMITIVE
    • DOUBLE

      public static final DataType DOUBLE
    • BIG_DECIMAL

      public static final DataType BIG_DECIMAL
    • BOOLEAN_PRIMITIVE

      public static final DataType BOOLEAN_PRIMITIVE
    • BOOLEAN

      public static final DataType BOOLEAN
    • BYTE_PRIMITIVE

      public static final DataType BYTE_PRIMITIVE
    • BYTE

      public static final DataType BYTE
    • DATE

      public static final DataType DATE
    • DURATION

      public static final DataType DURATION
  • Method Details

    • values

      public static DataType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DataType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • getClazz

      public Class<?> getClazz()
    • getTypeDesc

      public org.springframework.core.convert.TypeDescriptor getTypeDesc()
    • isPrimitive

      public boolean isPrimitive()
    • getByCode

      @Nullable public static DataType getByCode(int code)
      根据代码获取枚举
      Parameters:
      code - 代码
      Returns:
      枚举
    • getByType

      @Nullable public static DataType getByType(String type)
      根据类型字符串获取枚举
      Parameters:
      type - 类型字符串
      Returns:
      枚举
    • getByClass

      @Nullable public static DataType getByClass(Class<?> clazz)
      根据数据类获取枚举
      Parameters:
      clazz - 数据类
      Returns:
      枚举