public class OValue extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Number |
_bignumber |
protected boolean |
_bool |
protected Date |
_date |
protected double |
_decimal |
protected long |
_integer |
protected ONode |
_n |
protected String |
_string |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getBoolean()
获取值为 boolean 类型
|
char |
getChar()
获取值为 char 类型(为序列化提供支持)
|
Date |
getDate()
获取值为 date 类型
|
double |
getDouble()
获取值为 double 类型
|
float |
getFloat() |
int |
getInt()
获取值为 int 类型
|
long |
getLong()
获取值为 long 类型
|
Object |
getRaw() |
Number |
getRawBignumber() |
boolean |
getRawBoolean()
获取真实的布尔值
|
Date |
getRawDate()
获取真实的日期
|
double |
getRawDecimal()
获取真实的小数值
|
long |
getRawInteger()
获取原始的整型值
|
String |
getRawString()
获取真实的字符串
|
short |
getShort()
获取值为 short 类型
|
String |
getString()
获取值为 string 类型
|
boolean |
isNull() |
void |
set(Object val)
设置值
|
void |
setBignumber(Number val) |
void |
setBool(boolean val) |
void |
setDate(Date val) |
void |
setDecimal(double val) |
void |
setInteger(long val) |
void |
setNull() |
void |
setString(String val) |
OValueType |
type()
获取值类型
|
protected long _integer
protected double _decimal
protected String _string
protected boolean _bool
protected Date _date
protected Number _bignumber
protected ONode _n
public OValue(ONode n)
public OValueType type()
public void set(Object val)
public void setNull()
public void setInteger(long val)
public void setDecimal(double val)
public void setBignumber(Number val)
public void setString(String val)
public void setBool(boolean val)
public void setDate(Date val)
public Object getRaw()
public long getRawInteger()
public double getRawDecimal()
public String getRawString()
public boolean getRawBoolean()
public Date getRawDate()
public Number getRawBignumber()
public boolean isNull()
public char getChar()
public short getShort()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public String getString()
public boolean getBoolean()
public Date getDate()
Copyright © 2019. All rights reserved.