| 限定符和类型 | 字段和说明 |
|---|---|
static ValueModel |
FALSE |
static ValueModel |
NULL |
static ValueModel |
TRUE |
| 限定符和类型 | 方法和说明 |
|---|---|
BigDecimal |
asBigDecimal()
转换为 BigDecimal 值,如果为空值,那么返回 BigDecimal.ZERO
|
BigInteger |
asBigInteger()
转换为 BigDecimal 值,如果为空值,那么返回 BigDecimal.ZERO
|
boolean |
asBoolean()
转换为 boolean 值,如果为空值,那么返回false。
|
byte |
asByte()
转换为 byte 值,如果为空值,那么返回 0
|
double |
asDouble()
转换为 double 值,如果为空值,那么返回 0.0
|
float |
asFloat()
转换为 float 值,如果为空值,那么返回 0.0
|
int |
asInt()
转换为 int 值,如果为空值,那么返回 0
|
long |
asLong()
转换为 long 值,如果为空值,那么返回 0
|
Number |
asNumber()
转换为 Number 值,如果为空值,那么返回 (int)0
|
Object |
asOri()
得到本来面目
|
short |
asShort()
转换为 short 值,如果为空值,那么返回 0
|
String |
asString()
转换为 String 值
|
boolean |
isBigDecimal()
判断是否为 BigDecimal 类型值
|
boolean |
isBigInteger()
判断是否为 BigInteger 类型值
|
boolean |
isBoolean()
判断是否为 boolean 类型值
|
boolean |
isByte()
判断是否为 byte 类型值
|
boolean |
isDecimal()
判断是否为 Decimal 类型值
|
boolean |
isDouble()
判断是否为 double 类型值
|
boolean |
isFloat()
判断是否为 float 类型值
|
boolean |
isInt()
判断是否为 int 类型值
|
boolean |
isLong()
判断是否为 long 类型值
|
boolean |
isNull()
判断是否为 Null
|
boolean |
isNumber()
判断是否为 Number 类型值
|
boolean |
isShort()
判断是否为 short 类型值
|
boolean |
isString()
判断是否为 String 类型值
|
boolean |
isValue()
判断是否为 ValueModel 类型值
|
Object |
unwrap()
解开 DataModel 包裹,采用 Map 和 List 封装。
|
public static ValueModel NULL
public static ValueModel TRUE
public static ValueModel FALSE
public boolean isNull()
public boolean isNumber()
public boolean isByte()
public boolean isShort()
public boolean isInt()
public boolean isLong()
public boolean isBigInteger()
public boolean isFloat()
public boolean isDouble()
public boolean isBigDecimal()
public boolean isDecimal()
public boolean isBoolean()
public boolean asBoolean()
public Number asNumber()
public byte asByte()
public short asShort()
public int asInt()
public long asLong()
public BigInteger asBigInteger()
public float asFloat()
public double asDouble()
public BigDecimal asBigDecimal()
public boolean isString()
public String asString()
Copyright © 2020. All rights reserved.