com.alibaba.dubbo.common.utils
Class PojoUtils
java.lang.Object
com.alibaba.dubbo.common.utils.PojoUtils
public class PojoUtils
- extends Object
PojoUtils. Travel object deeply, and convert complex type to simple type.
Simple type below will be remained:
- Primitive Type, also include String, Number(Integer, Long), Date
- Array of Primitive Type
- Collection, eg: List, Map, Set etc.
Other type will be covert to a map which contains the attributes and value pair of object.
- Author:
- william.liangf, ding.lid
PojoUtils
public PojoUtils()
generalize
public static Object[] generalize(Object[] objs)
realize
public static Object[] realize(Object[] objs,
Class<?>[] types)
realize
public static Object[] realize(Object[] objs,
Class<?>[] types,
Type[] gtypes)
generalize
public static Object generalize(Object pojo)
realize
public static Object realize(Object pojo,
Class<?> type)
realize
public static Object realize(Object pojo,
Class<?> type,
Type genericType)
isPojo
public static boolean isPojo(Class<?> cls)
Copyright © 2012–2017 Alibaba. All rights reserved.