com.alipay.hessian.generic.util
Class GenericUtils

java.lang.Object
  extended by com.alipay.hessian.generic.util.GenericUtils

public class GenericUtils
extends Object

Since:
5.3.0

Constructor Summary
GenericUtils()
           
 
Method Summary
static void addCustomConverter(CustomConverter customConverter)
          增加自定义 CustomConverter
static
<T> T
convertToGenericObject(Object object)
          将对象转换为GenericObject
static
<T> T
convertToObject(Object genericObject)
          将 GenericObject 转换为具体对象
static void removeCustomConverter(CustomConverter customConverter)
          删除自定义 CustomConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericUtils

public GenericUtils()
Method Detail

addCustomConverter

public static void addCustomConverter(CustomConverter customConverter)
增加自定义 CustomConverter

Parameters:
customConverter -

removeCustomConverter

public static void removeCustomConverter(CustomConverter customConverter)
删除自定义 CustomConverter

Parameters:
customConverter -

convertToObject

public static <T> T convertToObject(Object genericObject)
将 GenericObject 转换为具体对象

Parameters:
genericObject - 待转换的GenericObject
Returns:
转换后结果

convertToGenericObject

public static <T> T convertToGenericObject(Object object)
将对象转换为GenericObject

Parameters:
object - 待转换的对象
Returns:
转换后的结果


Copyright © 2008–2018 Ant Financial. All rights reserved.