Interface DistanceCalculation

All Known Implementing Classes:
DamerauLevenshteinDistance, HammingDistance, LevenshteinDistance

public interface DistanceCalculation
Can calculate the distance between two strings.
Since:
1.2.9
Author:
ralph
  • Method Summary

    Modifier and Type Method Description
    int getDistance​(java.lang.String s1, java.lang.String s2)
    Return the distance according to the algorithm used.
  • Method Details

    • getDistance

      int getDistance​(java.lang.String s1, java.lang.String s2)
      Return the distance according to the algorithm used.

      Important! Both strings must not be null.

      Parameters:
      s1 - first string
      s2 - second string
      Returns:
      the distance between two strings