Class LevenshteinDistance


  • public class LevenshteinDistance
    extends Object
    Wrapper arround the Apache Levenshtein Distance
    • Method Detail

      • isEqual

        public static boolean isEqual​(int max,
                                      String s1,
                                      String s2)
        Apply levenshtein distance on two strings
        Parameters:
        max - max threshold
        s1 - string 1
        s2 - string 2
        Returns:
        true if the levenshtein distance is <= the threshold