com.leaprnd.deltadom.matching.AlwaysGoodMatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A high performance Java library for finding the differences between two HTML documents
The newest version!
package com.leaprnd.deltadom.matching;
import org.w3c.dom.Node;
import static com.leaprnd.deltadom.Similarity.GOOD_MATCH;
enum AlwaysGoodMatch implements Calculator, MatcherFactory {
ALWAYS_GOOD_MATCH;
@Override
public float getSimilarityOf(Node a, Node b) {
return GOOD_MATCH;
}
@Override
public Matcher newMatcher() {
return new SimilarityGrid<>(this);
}
}