public class ObjectTypeConditionExtension extends Object
| 构造器和说明 |
|---|
ObjectTypeConditionExtension() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
is(Object target,
Class<?> clazz)
判断是否是目标类型
|
boolean |
is(Object target,
String type)
判断是否是目标类型
|
static boolean |
isArray(Object target)
判断是否是数组
|
boolean |
isBoolean(Object target)
判断是否是boolean
|
boolean |
isByte(Object target)
判断是否是byte
|
static boolean |
isCollection(Object target)
判断是否是集合
|
boolean |
isDate(Object target)
判断是否是Date
|
boolean |
isDecimal(Object target)
判断是否是BigDecimal
|
boolean |
isDouble(Object target)
判断是否是double
|
boolean |
isInt(Object target)
判断是否是int
|
boolean |
isList(Object target)
判断是否是List
|
boolean |
isLong(Object target)
判断是否是long
|
static boolean |
isMap(Object target)
判断是否是Map
|
boolean |
isShort(Object target)
判断是否是short
|
boolean |
isString(Object target)
判断是否是String
|
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u4e3a\u6307\u5b9a\u7c7b\u578b\u7684\u5bf9\u8c61") public static boolean is(Object target, @Comment(name="clazz",value="\u76ee\u6807\u7c7b\u578b") Class<?> clazz)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662f\u6570\u7ec4") public static boolean isArray(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662f\u96c6\u5408") public static boolean isCollection(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fMap") public static boolean isMap(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u4e3a\u6307\u5b9a\u7c7b\u578b\u7684\u5bf9\u8c61\uff0ctype\u4e3anull\u65f6 \u8fd4\u56defalse\uff0c\u652f\u6301\u7c7b\u540d\u7f29\u5199") public boolean is(Object target, @Comment(name="type",value="\u7c7b\u540d\u6216\u5168\u7c7b\u540d\u6216string\u3001int\u3001double\u3001float\u3001long\u3001byte\u3001short\u3001bigdecimal\u3001boolean") String type)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fString\u7c7b\u578b") public boolean isString(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fint\u7c7b\u578b") public boolean isInt(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fdouble\u7c7b\u578b") public boolean isDouble(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662flong\u7c7b\u578b") public boolean isLong(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fbyte\u7c7b\u578b") public boolean isByte(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fshort\u7c7b\u578b") public boolean isShort(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fboolean\u7c7b\u578b") public boolean isBoolean(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fBigDecimal\u7c7b\u578b") public boolean isDecimal(Object target)
@Comment(value="\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662fDate\u7c7b\u578b") public boolean isDate(Object target)
Copyright © 2020–2022. All rights reserved.