public class LogClassUtil extends Object
| 构造器和说明 |
|---|
LogClassUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.javers.core.diff.Diff |
compare(Object source,
Object target)
比较两个对象的差异
|
static List<AttributeChange> |
diff(Object leftValue,
Object rightValue)
比较两个对象的差异,返回属性变更列表
|
static List<AttributeChange> |
diff(Object leftValue,
Object rightValue,
PropertyFilter propertyFilter)
比较两个对象的差异,返回过滤后的属性变更列表
|
static <T> T |
invokeRaw(Object obj,
Method method,
Object... args)
执行方法调用 对用户传入参数进行必要检查,包括: 1.
|
public static <T> T invokeRaw(Object obj, Method method, Object... args) throws InvocationTargetException, IllegalAccessException
T - 返回对象类型obj - 对象,如果执行静态方法,此值为 nullmethod - 方法(对象方法或静态方法)args - 参数对象InvocationTargetExceptionIllegalAccessExceptionpublic static org.javers.core.diff.Diff compare(Object source, Object target)
source - 源对象target - 目标对象public static List<AttributeChange> diff(Object leftValue, Object rightValue)
leftValue - 原始对象rightValue - 目标对象public static List<AttributeChange> diff(Object leftValue, Object rightValue, PropertyFilter propertyFilter)
leftValue - 原始对象rightValue - 目标对象propertyFilter - 属性过滤器Copyright © 2025. All rights reserved.