public final class ParameterBeanMapper
extends java.lang.Object
Constructor and Description |
---|
ParameterBeanMapper() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
mapParametersToBean(java.util.Map<java.lang.String,java.lang.Object> parameters,
java.lang.Class<T> cls)
Instantiates an object of the specified type and populates properties of the object from the provided
parameters.
|
public static <T> T mapParametersToBean(java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.Class<T> cls)
T
- the type of the object to instantiate and populateparameters
- a Map
of values to populate the object fromcls
- the Class
representing the type of the object to instantiate and populate