Class DiffCalculator
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.util.diff.DiffCalculator
-
public class DiffCalculator extends Object
Compares Strings to find differences. This is kind of a wrapper of the diff_match_patch class created by google.- Version:
- $Id: DiffCalculator.java 11649 2008-06-24 15:25:14Z baranda $
- Author:
- Bruno Aranda (baranda@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DiffCalculator()
Constructor for DiffCalculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Diff>
calculateDiffs(String str1, String str2)
calculateDiffs.List<Diff>
calculateDiffs(String str1, String str2, boolean checkLines)
calculateDiffs.void
setTimeOut(float timeout)
setTimeOut.
-
-
-
Method Detail
-
calculateDiffs
public List<Diff> calculateDiffs(String str1, String str2, boolean checkLines)
calculateDiffs.
-
setTimeOut
public void setTimeOut(float timeout)
setTimeOut.
- Parameters:
timeout
- a float.
-
-