com.alibaba.dubbo.common.utils
Class PojoUtils

java.lang.Object
  extended by 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:

Other type will be covert to a map which contains the attributes and value pair of object.

Author:
william.liangf, ding.lid

Constructor Summary
PojoUtils()
           
 
Method Summary
static Object generalize(Object pojo)
           
static Object[] generalize(Object[] objs)
           
static boolean isPojo(Class<?> cls)
           
static Object[] realize(Object[] objs, Class<?>[] types)
           
static Object[] realize(Object[] objs, Class<?>[] types, Type[] gtypes)
           
static Object realize(Object pojo, Class<?> type)
           
static Object realize(Object pojo, Class<?> type, Type genericType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoUtils

public PojoUtils()
Method Detail

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.