public class MergeObjectExtensions extends Object
MergeObjectExtensions provide extension methods for merge a source object with
another object.| Constructor and Description |
|---|
MergeObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <MERGE_IN,WITH> |
merge(MERGE_IN mergeInObject,
WITH withObject)
Merge the given to object with the given 'with' object.
|
static <MERGE_IN,WITH> |
mergeProperty(MERGE_IN mergeInObject,
WITH withObject,
PropertyDescriptor propertyDescriptor)
Merge the given property to the given 'to' object with the given 'with' object.
|
static <MERGE_IN,WITH> |
mergePropertyWithReflection(MERGE_IN mergeInObject,
WITH withObject,
String fieldName)
Merge the given property to the given 'to' object with the given 'with' object over
reflection.
|
public static final <MERGE_IN,WITH> boolean mergePropertyWithReflection(MERGE_IN mergeInObject,
WITH withObject,
String fieldName)
MERGE_IN - the generic type of the object to merge inWITH - the generic type of the object to merge withmergeInObject - the object to merge in, in other words the targetwithObject - the object to merge with, in other words the sourcefieldName - the field nameIllegalArgumentException - if the mergeInObject or withObject argument is null or
if the mergeInObject property type is different from the source type
and the relevant converter has not been registered.SecurityException - is thrown if a security manager says no.public static final <MERGE_IN,WITH> MERGE_IN merge(MERGE_IN mergeInObject,
WITH withObject)
throws InvocationTargetException,
IllegalAccessException,
IllegalArgumentException
MERGE_IN - the generic type of the object to merge inWITH - the generic type of the object to merge withmergeInObject - the object to merge inwithObject - the object to merge withInvocationTargetException - if the property accessor method throws an exceptionIllegalAccessException - if the caller does not have access to the property accessor methodIllegalArgumentException - if the mergeInObject or withObject argument is null or
if the mergeInObject property type is different from the source type
and the relevant converter has not been registered.public static final <MERGE_IN,WITH> boolean mergeProperty(MERGE_IN mergeInObject,
WITH withObject,
PropertyDescriptor propertyDescriptor)
throws IllegalAccessException,
InvocationTargetException,
IllegalArgumentException
MERGE_IN - the generic type of the object to merge inWITH - the generic type of the object to merge withmergeInObject - the object to merge inwithObject - the object to merge withpropertyDescriptor - the property descriptorInvocationTargetException - if the property accessor method throws an exceptionIllegalAccessException - if the caller does not have access to the property accessor methodIllegalArgumentException - if the mergeInObject or withObject argument is null or
if the mergeInObject property type is different from the source type
and the relevant converter has not been registered.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.