public final class DiffObjects extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<DiffResult> |
diff(T beforeState,
T afterState)
Execute the diff between two objects using annotations.
|
static <T> List<DiffResult> |
diff(T beforeState,
T afterState,
DiffConfiguration configuration)
Execute the diff between two objects using a configuration.
|
static <T> boolean |
isEquals(T beforeState,
T afterState)
Check if exists any difference between the two objects using annotations.
|
static <T> boolean |
isEquals(T beforeState,
T afterState,
DiffConfiguration configuration)
Check if exists any difference between the two objects.
|
public static <T> List<DiffResult> diff(T beforeState, T afterState)
T - type of object been compared.beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.public static <T> List<DiffResult> diff(T beforeState, T afterState, DiffConfiguration configuration)
T - type of object been compared.beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.configuration - the configuration of the diff.public static <T> boolean isEquals(T beforeState,
T afterState)
T - type of object been compared.beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.true if no difference exists between the objects or false otherwise.public static <T> boolean isEquals(T beforeState,
T afterState,
DiffConfiguration configuration)
T - type of object been compared.beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.configuration - the configuration of the diff.true if no difference exists between the objects or false otherwise.Copyright © 2018. All rights reserved.