public class TypeTrait extends Object
| 构造器和说明 |
|---|
TypeTrait() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
fromString(String value,
Class<?> clazz)
Convert a value from string type.
|
static boolean |
isBool(Field field)
Checks if it is a boolean type
Field. |
static boolean |
isBool(Object obj)
Checks if it is a boolean type object.
|
static boolean |
isNumber(Field field)
Checks if it is a number type
Field. |
static boolean |
isNumber(Object obj)
Checks if it is a number type object.
|
static boolean |
isReal(Field field)
Checks if it is a real number type
Field. |
static boolean |
isReal(Object obj)
Checks if it is a real number type object.
|
static boolean |
isSameLooseType(Object object,
Field field)
Checks if the object and field are the same loose type.
|
static boolean |
isString(Field field)
Checks if it is a string type
Field. |
static boolean |
isString(Object obj)
Checks if it is a string type object.
|
public static boolean isNumber(Object obj)
obj - An object to check.public static boolean isNumber(Field field)
Field.field - A field to check.public static boolean isReal(Object obj)
obj - An object to check.public static boolean isReal(Field field)
Field.field - A field to check.public static boolean isBool(Object obj)
obj - An object to check.public static boolean isBool(Field field)
Field.field - A field to check.public static boolean isString(Object obj)
obj - An object to check.public static boolean isString(Field field)
Field.field - A field to check.public static boolean isSameLooseType(Object object, Field field)
object - An object to check.field - A field to check.Copyright © 2024. All rights reserved.