public enum PropertyType extends Enum<PropertyType>
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getType(Class<?> type)
获取类型描述
|
static boolean |
hasBaseType(Class<?> clz)
判断基础类型
|
static PropertyType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static PropertyType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PropertyType STRING
public static final PropertyType INT
public static final PropertyType CHAR
public static final PropertyType BOOLEAN
public static final PropertyType BYTE
public static final PropertyType SHORT
public static final PropertyType LONG
public static final PropertyType DOUBLE
public static final PropertyType FLOAT
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static boolean hasBaseType(Class<?> clz)
clz - class类型Copyright © 2024. All rights reserved.