Class DiceMatcher

java.lang.Object
org.zaproxy.addon.commonlib.DiceMatcher

public final class DiceMatcher extends Object
A DiceMatcher that implements the Dice algorithm to measure the similarity between two strings
Since:
1.3.0
  • Method Details

    • getMatchPercentage

      public static int getMatchPercentage(String a, String b)
      Parameters:
      a - The first string to be compared
      b - The second string to be compared
      Returns:
      The match percentage of the two strings, rounded off to the nearest integer