public final class BeanMappers
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static BeanMapper |
DEFAULT
The Constant DEFAULT.
|
static BeanMapper |
IGNORE_EMPTY
The Constant IGNORE_EMPTY.
|
static BeanMapper |
IGNORE_NULL
The Constant IGNORE_NULL.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
copy(java.lang.Class<T> destinationClass,
java.lang.Object source)
Convert object type.
|
static <T> T |
copy(java.lang.Class<T> destinationClass,
java.lang.Object source,
com.github.dozermapper.core.Mapper mapper)
Convert object type.
|
static <T> T |
copy(T destinationObject,
java.lang.Object source)
Copy the value from A to B, use Default DozerBeanMapper.
|
static <T> T |
copy(T destinationObject,
java.lang.Object source,
com.github.dozermapper.core.Mapper mapper)
Copy the value from A to B.
|
static <T> java.util.List<T> |
copyList(java.lang.Class<T> destinationClass,
java.util.Collection<?> sourceList)
Map list list.
|
static <T> java.util.List<T> |
copyList(java.lang.Class<T> destinationClass,
java.util.Collection<?> sourceList,
com.github.dozermapper.core.Mapper mapper)
Map list list.
|
public static final BeanMapper IGNORE_NULL
public static final BeanMapper IGNORE_EMPTY
public static final BeanMapper DEFAULT
public static <T> T copy(T destinationObject,
java.lang.Object source)
T - the generic typedestinationObject - the destination objectsource - the sourcepublic static <T> T copy(java.lang.Class<T> destinationClass,
java.lang.Object source)
T - the type parameterdestinationClass - the destination classsource - the sourcepublic static <T> java.util.List<T> copyList(java.lang.Class<T> destinationClass,
java.util.Collection<?> sourceList)
T - the type parameterdestinationClass - the destination classsourceList - the source listpublic static <T> T copy(T destinationObject,
java.lang.Object source,
com.github.dozermapper.core.Mapper mapper)
T - the generic typedestinationObject - the destination objectsource - the sourcemapper - the mapperpublic static <T> T copy(java.lang.Class<T> destinationClass,
java.lang.Object source,
com.github.dozermapper.core.Mapper mapper)
T - the type parameterdestinationClass - the destination classsource - the sourcemapper - the mapperpublic static <T> java.util.List<T> copyList(java.lang.Class<T> destinationClass,
java.util.Collection<?> sourceList,
com.github.dozermapper.core.Mapper mapper)
T - the type parameterdestinationClass - the destination classsourceList - the source listmapper - the mapper