All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.leaprnd.deltadom.matching.AlwaysGoodMatch Maven / Gradle / Ivy

Go to download

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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy