public class ForestDataType extends Object
Modifier and Type | Field and Description |
---|---|
static ForestDataType |
AUTO
数据类型: 自动类型
|
static ForestDataType |
BINARY
数据类型: 二进制类型
|
static Map<String,ForestDataType> |
DATA_TYPES
数据类型表
|
static ForestDataType |
JSON
数据类型: JSON类型
|
static ForestDataType |
TEXT
数据类型: 文本类型
|
static ForestDataType |
XML
数据类型: XML类型
|
Modifier and Type | Method and Description |
---|---|
static ForestDataType |
createDataType(String name)
创建新的数据类型
|
boolean |
equals(Object o)
重载equals方法
|
static ForestDataType |
findByName(String name)
Find data type object by data type name
|
static ForestDataType |
findOrCreateDataType(String name)
Find or create a data type
|
String |
getName()
获取数据类型名称
|
int |
hashCode()
重载HashCode
|
public static final Map<String,ForestDataType> DATA_TYPES
所有在Forest中创建的数据类型对象都会放入这个哈希表中
public static final ForestDataType AUTO
public static final ForestDataType TEXT
public static final ForestDataType JSON
public static final ForestDataType XML
public static final ForestDataType BINARY
public static ForestDataType createDataType(String name)
name
- Data type namecom.dtflys.forest.utils.ForestDataType
public String getName()
public static ForestDataType findByName(String name)
name
- Data type namecom.dtflys.forest.utils.ForestDataType
public static ForestDataType findOrCreateDataType(String name)
name
- Data type namecom.dtflys.forest.utils.ForestDataType
public boolean equals(Object o)
Copyright © 2020. All rights reserved.