Class SimilarExprMatcher

java.lang.Object
games.stendhal.common.parser.ExpressionMatcher
games.stendhal.common.parser.SimilarExprMatcher

public class SimilarExprMatcher extends ExpressionMatcher
SimilarExprMatcher creates an ExpressionMatcher with similarity matching.
Author:
Martin Fuchs
  • Constructor Details

    • SimilarExprMatcher

      public SimilarExprMatcher()
  • Method Details

    • isSimilar

      public static boolean isSimilar(String str1, String str2, double delta)
      Check for string similarity giving a limit quotient. Comparison is case insensitive.
      Parameters:
      str1 -
      str2 -
      delta -
      Returns:
      true if similar