public class ModelAdapterUtil
extends Object
Constructor and Description |
---|
ModelAdapterUtil() |
Modifier and Type | Method and Description |
---|---|
static <T,V> List<V> |
adapt(List<T> adapteeModels,
Class<T> adapteeModelClass,
Class<V> adaptedModelClass) |
static <T,V> List<V> |
adapt(List<T> adapteeModels,
Class<V> adaptedModelClass) |
static <T,V> V |
adapt(T adapteeModel,
Class<T> adapteeModelClass,
Class<V> adaptedModelClass) |
static <T,V> V |
adapt(T adapteeModel,
Class<V> adaptedModelClass) |
protected static <T,V> V |
doAdapt(T adapteeModel,
Class<T> adapteeModelClass,
Class<V> adaptedModelClass) |
public static <T,V> List<V> adapt(List<T> adapteeModels, Class<T> adapteeModelClass, Class<V> adaptedModelClass)
public static <T,V> List<V> adapt(List<T> adapteeModels, Class<V> adaptedModelClass)
public static <T,V> V adapt(T adapteeModel, Class<T> adapteeModelClass, Class<V> adaptedModelClass)
public static <T,V> V adapt(T adapteeModel, Class<V> adaptedModelClass)
protected static <T,V> V doAdapt(T adapteeModel, Class<T> adapteeModelClass, Class<V> adaptedModelClass)