public final class ObjectExtensions extends Object
ObjectExtensions provides extension methods to check if the object is the
default value. It also provides methods to find changed data between Objects.| Constructor and Description |
|---|
ObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static List<ChangedAttributeResult> |
getChangedData(Object sourceOjbect,
Object objectToCompare)
Deprecated.
|
static Map<Object,ChangedAttributeResult> |
getChangedDataMap(Object sourceOjbect,
Object objectToCompare)
Deprecated.
|
static Map<String,Integer> |
getCompareToResult(Object sourceOjbect,
Object objectToCompare)
Deprecated.
|
static <T> boolean |
isDefaultValue(T object)
Checks if the given object has the default value.
|
static <T> boolean |
isNotDefaultValue(T object)
Checks if the given object has not the default value.
|
@Deprecated public static List<ChangedAttributeResult> getChangedData(Object sourceOjbect, Object objectToCompare) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
MergeObjectExtensions.getChangedData(Object, Object)sourceOjbect - the source ojbectobjectToCompare - the object to compareIllegalAccessException - the illegal access exceptionInvocationTargetException - the invocation target exceptionNoSuchMethodException - the no such method exception@Deprecated public static Map<Object,ChangedAttributeResult> getChangedDataMap(Object sourceOjbect, Object objectToCompare) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
MergeObjectExtensions.getChangedDataMap(Object, Object)sourceOjbect - the source ojbectobjectToCompare - the object to compareIllegalAccessException - the illegal access exceptionInvocationTargetException - the invocation target exceptionNoSuchMethodException - the no such method exception@Deprecated public static Map<String,Integer> getCompareToResult(Object sourceOjbect, Object objectToCompare) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
CompareObjectExtensions.getCompareToResult(Object, Object)sourceOjbect - the source ojbectobjectToCompare - the object to compareIllegalAccessException - the illegal access exceptionInvocationTargetException - the invocation target exceptionNoSuchMethodException - the no such method exceptionpublic static final <T> boolean isDefaultValue(T object)
T - the generic typeobject - the objectpublic static final <T> boolean isNotDefaultValue(T object)
T - the generic typeobject - the objectCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.