public final class CompareModelFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CompareAlgorithm |
createCompareAlgorithm(CompareType type) |
static CompareModel |
createCompareModel(CompareContributor first,
CompareContributor second)
Compare the first contributor to the second contributor and return
a model describing the differences.
|
static CompareModel |
createCompareModel(CompareContributor first,
CompareContributor second,
CompareType type)
Compare the first contributor to the second contributor and return
a model describing the differences.
|
static CompareModel |
createCompareModel(CompareContributor first,
CompareContributor second,
CompareType type,
CompareAlgorithm compareAlgorithm) |
static CompareModel |
createMergeModel(CompareContributor first,
CompareContributor second,
CompareContributor ancestor)
Merge the first contributor and the second contributor based on a third and
return a model of conflicting differences.
|
static CompareModel |
createMergeModel(CompareContributor first,
CompareContributor second,
CompareContributor ancestor,
CompareType type)
Merge the first contributor and the second contributor based on a third and
return a model of conflicting differences.
|
static void |
registerCompareAlgorithm(CompareType type,
java.lang.Class<? extends CompareAlgorithm> algorithmClass) |
static void |
registerCompareAlgorithm(CompareType type,
Thunk<java.lang.Class<? extends CompareAlgorithm>> algorithmClass) |
public static final void registerCompareAlgorithm(CompareType type, java.lang.Class<? extends CompareAlgorithm> algorithmClass)
public static final void registerCompareAlgorithm(CompareType type, Thunk<java.lang.Class<? extends CompareAlgorithm>> algorithmClass)
public static CompareModel createCompareModel(CompareContributor first, CompareContributor second) throws CompareFailedException
first
- the first contributor.second
- the second contributor.CompareFailedException
public static CompareModel createMergeModel(CompareContributor first, CompareContributor second, CompareContributor ancestor) throws CompareFailedException
first
- the first contributor.second
- the second contributor.ancestor
- the ancestor contributor.CompareFailedException
public static CompareModel createCompareModel(CompareContributor first, CompareContributor second, CompareType type) throws CompareFailedException
first
- the first contributor.second
- the second contributor.type
- the compare type.CompareFailedException
public static CompareModel createCompareModel(CompareContributor first, CompareContributor second, CompareType type, CompareAlgorithm compareAlgorithm) throws CompareFailedException
CompareFailedException
public static CompareModel createMergeModel(CompareContributor first, CompareContributor second, CompareContributor ancestor, CompareType type) throws CompareFailedException
first
- the first contributor.second
- the second contributor.ancestor
- the ancestor contributor.type
- the compare type.CompareFailedException
public static final CompareAlgorithm createCompareAlgorithm(CompareType type)