public class MatchingScoreCalculator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
MatchingScoreCalculator.MatchingScoreVisitor
The visitor for visiting the difference tree.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Difference,Integer> |
cachedMatchingScores
Cache for matching scores
|
protected MatchingScoreCalculator.MatchingScoreVisitor |
matchingScoreVisitor
The visitor for visiting the difference tree
|
| Constructor and Description |
|---|
MatchingScoreCalculator() |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateMatchingScore(Difference difference)
Gets the matching score for the given difference.
|
protected int |
getMatchingScore(CollectionDifference collectionDifference)
Gets the matching score for a collection difference.
|
protected int |
getMatchingScore(Difference difference)
Gets the matching score for a simple difference.
|
protected int |
getMatchingScore(MapDifference mapDifference)
Gets the matching score for a map difference.
|
protected int |
getMatchingScore(ObjectDifference objectDifference)
Gets the matching score for an object difference.
|
protected int |
getMatchingScore(UnorderedCollectionDifference unorderedCollectionDifference)
Gets the matching score for an unordered collection difference.
|
protected MatchingScoreCalculator.MatchingScoreVisitor matchingScoreVisitor
protected Map<Difference,Integer> cachedMatchingScores
public int calculateMatchingScore(Difference difference)
difference - The differenceprotected int getMatchingScore(Difference difference)
difference - The difference, not nullprotected int getMatchingScore(ObjectDifference objectDifference)
objectDifference - The difference, not nullprotected int getMatchingScore(MapDifference mapDifference)
mapDifference - The difference, not nullprotected int getMatchingScore(CollectionDifference collectionDifference)
collectionDifference - The difference, not nullprotected int getMatchingScore(UnorderedCollectionDifference unorderedCollectionDifference)
unorderedCollectionDifference - The difference, not nullCopyright © 2016. All Rights Reserved.