|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.common.utils.CompatibleTypeUtils
public class CompatibleTypeUtils
Method Summary | |
---|---|
static Object |
compatibleTypeConvert(Object value,
Class<?> type)
兼容类型转换。null值是OK的。如果不需要转换,则返回原来的值。 进行的兼容类型转换如下:(基本类对应的Wrapper类型不再列出。) String -> char, enum, Date byte, short, int, long -> byte, short, int, long float, double -> float, double |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object compatibleTypeConvert(Object value, Class<?> type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |