T - type of object been compared.public final class DiffObjects<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DiffResult> |
diff(java.util.Collection<T> beforeState,
java.util.Collection<T> afterState,
DiffComparator<T> matcher)
Execute the diff between two objects using annotations.
|
java.util.List<DiffResult> |
diff(java.util.Collection<T> beforeState,
java.util.Collection<T> afterState,
DiffConfiguration configuration,
DiffComparator<T> matcher)
Execute the diff between two objects using a configuration.
|
java.util.List<DiffResult> |
diff(T beforeState,
T afterState)
Execute the diff between two objects using annotations.
|
java.util.List<DiffResult> |
diff(T beforeState,
T afterState,
DiffConfiguration configuration)
Execute the diff between two objects using a configuration.
|
static <T> DiffObjects<T> |
forClass(java.lang.Class<T> clazz)
Creates a DiffObjects for a specific class.
|
boolean |
isEquals(java.util.Collection<T> beforeState,
java.util.Collection<T> afterState,
DiffComparator<T> matcher)
Check if exists any difference between the two objects using annotations.
|
boolean |
isEquals(java.util.Collection<T> beforeState,
java.util.Collection<T> afterState,
DiffConfiguration configuration,
DiffComparator<T> matcher)
Check if exists any difference between the two objects.
|
boolean |
isEquals(T beforeState,
T afterState)
Check if exists any difference between the two objects using annotations.
|
boolean |
isEquals(T beforeState,
T afterState,
DiffConfiguration configuration)
Check if exists any difference between the two objects.
|
public static <T> DiffObjects<T> forClass(java.lang.Class<T> clazz)
T - type of the class.clazz - class type of this DiffObjects.public java.util.List<DiffResult> diff(T beforeState, T afterState)
beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.public java.util.List<DiffResult> diff(T beforeState, T afterState, DiffConfiguration configuration)
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 java.util.List<DiffResult> diff(java.util.Collection<T> beforeState, java.util.Collection<T> afterState, DiffComparator<T> matcher)
beforeState - the before object state to compare with after object.afterState - the after object state to compare with before object.public java.util.List<DiffResult> diff(java.util.Collection<T> beforeState, java.util.Collection<T> afterState, DiffConfiguration configuration, DiffComparator<T> matcher)
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.matcher - public boolean isEquals(T beforeState, T afterState)
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 boolean isEquals(T beforeState, T afterState, DiffConfiguration configuration)
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.public boolean isEquals(java.util.Collection<T> beforeState, java.util.Collection<T> afterState, DiffComparator<T> matcher)
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 boolean isEquals(java.util.Collection<T> beforeState, java.util.Collection<T> afterState, DiffConfiguration configuration, DiffComparator<T> matcher)
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.