public final class DiffEngine
extends java.lang.Object
| Constructor and Description | 
|---|
DiffEngine()  | 
DiffEngine(boolean allowMultipleDiffers)  | 
DiffEngine(DiffEngine existing)
Create a new diff engine with the same differs as an existing one 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelDiff()  | 
void | 
checkProgress()  | 
DiffEngine | 
copy()
Creates a copy of this diff engine with all the same comparators and
 differs registered. 
 | 
DiffContext | 
diff(java.util.List a,
    java.util.List b,
    ResultSet r,
    DiffContext dc)
Diff the given object lists with the prepared context. 
 | 
DiffContext | 
diff(java.lang.Object[] a,
    java.lang.Object[] b)
Diff the given objects. 
 | 
DiffContext | 
diff(java.lang.Object[] a,
    java.lang.Object[] b,
    ResultSet r)
Diff the given object arrays. 
 | 
DiffContext | 
diff(java.lang.Object[] a,
    java.lang.Object[] b,
    ResultSet r,
    DiffContext dc)
Diff the given object arrays with the prepared context. 
 | 
DiffContext | 
diff(java.lang.Object a,
    java.lang.Object b)
Diff the given objects. 
 | 
DiffContext | 
diff(java.lang.Object a,
    java.lang.Object b,
    ResultSet r,
    DiffContext dc)
Diff the given objects with the prepared context. 
 | 
Difference | 
difference(java.lang.Object a,
          java.lang.Object b)
Diffs the given objects and returns a Difference object that represents
 the differences between them. 
 | 
<T> java.util.Comparator<? super T> | 
getComparator(java.lang.Class<T> type)
Gets the Comparator implementation that this engine will use to compare
 objects of the given class when they are in an array. 
 | 
<T> void | 
registerComparator(java.util.Comparator<? super T> cmp,
                  java.lang.Class<T> c)
Registers a Comparator for a given object type. 
 | 
void | 
registerDiffer(Differ d,
              java.lang.Class c)
Registers a given Differ implementation with an object type (to
 be used by only this DiffEngine instance) 
 | 
void | 
registerListDiffer(Differ d,
                  java.lang.Class c)
Registers a given Differ implementation with a List of object type (to
 be used by only this DiffEngine instances) 
 | 
public DiffEngine()
public DiffEngine(boolean allowMultipleDiffers)
public DiffEngine(DiffEngine existing)
public Difference difference(java.lang.Object a, java.lang.Object b)
public DiffContext diff(java.lang.Object a, java.lang.Object b)
difference(Object,Object)public DiffContext diff(java.lang.Object[] a, java.lang.Object[] b)
difference(Object,Object)public DiffContext diff(java.lang.Object a, java.lang.Object b, ResultSet r, DiffContext dc)
public DiffContext diff(java.lang.Object[] a, java.lang.Object[] b, ResultSet r)
public DiffContext diff(java.lang.Object[] a, java.lang.Object[] b, ResultSet r, DiffContext dc)
public DiffContext diff(java.util.List a, java.util.List b, ResultSet r, DiffContext dc)
public void registerDiffer(Differ d, java.lang.Class c)
public void registerListDiffer(Differ d, java.lang.Class c)
public <T> void registerComparator(java.util.Comparator<? super T> cmp,
                          java.lang.Class<T> c)
public <T> java.util.Comparator<? super T> getComparator(java.lang.Class<T> type)
type - the class to look uptype.public void checkProgress()
public void cancelDiff()
public DiffEngine copy()