public class BlurObject extends Object implements Serializable
Constructor and Description |
---|
BlurObject(Object o) |
Modifier and Type | Method and Description |
---|---|
static BlurObject |
bind(Object o) |
static <T> T |
convertTo(Object attr,
Class<T> targetType) |
boolean |
equals(Object obj) |
Class<?> |
getObjectClass() |
int |
hashCode() |
static void |
registerConverter(Class<?> fromClass,
Class<?> toClass,
IConverter<?> converter)
注册类型转换器
|
BlurObject |
toBlurObjectValue() |
Boolean |
toBoolean() |
boolean |
toBooleanValue() |
Byte |
toByte() |
Byte[] |
toBytes() |
byte[] |
toBytesValue() |
byte |
toByteValue() |
Character[] |
toCharacters() |
char[] |
toCharsValue() |
char |
toCharValue() |
Double |
toDouble() |
double |
toDoubleValue() |
Float |
toFloat() |
float |
toFloatValue() |
Integer |
toInteger() |
int |
toIntValue() |
List<?> |
toListValue() |
Long |
toLong() |
long |
toLongValue() |
Map<?,?> |
toMapValue() |
Object |
toObjectValue() |
Object |
toObjectValue(Class<?> clazz) |
Object |
toObjectValue(Class<?> clazz,
boolean nullable)
输出指定类的对象
|
Set<?> |
toSetValue() |
Short |
toShort() |
short |
toShortValue() |
String |
toString() |
String |
toStringValue() |
public BlurObject(Object o)
public static void registerConverter(Class<?> fromClass, Class<?> toClass, IConverter<?> converter) throws Exception
fromClass
- 原类型toClass
- 目标类型converter
- 类型转换器实例Exception
- 可能产生的任何异常public static BlurObject bind(Object o)
public Object toObjectValue()
public BlurObject toBlurObjectValue()
public Map<?,?> toMapValue()
public List<?> toListValue()
public Set<?> toSetValue()
public Boolean toBoolean()
public boolean toBooleanValue()
public Integer toInteger()
public int toIntValue()
public String toStringValue()
public Float toFloat()
public float toFloatValue()
public Double toDouble()
public double toDoubleValue()
public Long toLong()
public long toLongValue()
public Byte toByte()
public byte toByteValue()
public Byte[] toBytes()
public byte[] toBytesValue()
public Short toShort()
public short toShortValue()
public char toCharValue()
public char[] toCharsValue()
public Character[] toCharacters()
public Object toObjectValue(Class<?> clazz, boolean nullable)
clazz
- 指定类nullable
- 若值为null时是否创建默认实例public Class<?> getObjectClass()
Copyright © 2022. All rights reserved.