类 ForestDataType
java.lang.Object
com.dtflys.forest.utils.ForestDataType
数据类型封装类型
- 从以下版本开始:
- 2016-05-30
- 作者:
- gongjun[dt_flys@hotmail.com]
-
字段概要
字段修饰符和类型字段说明static final ForestDataType数据类型: 自动类型static final ForestDataType数据类型: 二进制类型static final Map<String,ForestDataType> 数据类型表static final ForestDataType数据类型: 表单类型static final ForestDataType数据类型: JSON类型static final ForestDataType数据类型: 文件类型static final ForestDataType数据类型: Protobuf类型static final ForestDataType数据类型: 文本类型static final ForestDataType数据类型: XML类型 -
方法概要
修饰符和类型方法说明static ForestDataTypecreateDataType(String name, Boolean hasNameValue) 创建新的数据类型boolean重载equals方法static ForestDataTypefindByName(String name) Find data type object by data type namestatic ForestDataTypefindOrCreateDataType(String name) Find or create a data typegetName()获取数据类型名称inthashCode()重载HashCode
-
字段详细资料
-
DATA_TYPES
数据类型表所有在Forest中创建的数据类型对象都会放入这个哈希表中
- 从以下版本开始:
- 1.5.0-BETA4
-
AUTO
数据类型: 自动类型 -
TEXT
数据类型: 文本类型 -
FORM
数据类型: 表单类型 -
JSON
数据类型: JSON类型 -
XML
数据类型: XML类型 -
BINARY
数据类型: 二进制类型 -
MULTIPART
数据类型: 文件类型 -
PROTOBUF
数据类型: Protobuf类型
-
-
方法详细资料
-
createDataType
创建新的数据类型- 参数:
name- Data type namehasNameValue- 是否有键值对- 返回:
- New instance of
ForestDataType - 从以下版本开始:
- 1.5.0-BETA4
-
getName
获取数据类型名称- 返回:
- Name of this data type
-
findByName
Find data type object by data type name- 参数:
name- Data type name- 返回:
- Instance of
com.dtflys.forest.utils.ForestDataType - 从以下版本开始:
- 1.5.0-BETA4
-
findOrCreateDataType
Find or create a data type- 参数:
name- Data type name- 返回:
- Instance of
com.dtflys.forest.utils.ForestDataType - 从以下版本开始:
- 1.5.0-BETA4
-
equals
重载equals方法 -
hasNameValue
-
hashCode
public int hashCode()重载HashCode
-