java.lang.Object
com.espertech.esper.common.internal.util.LikeUtil
All Implemented Interfaces:
Serializable

public class LikeUtil extends Object implements Serializable
Utility for performing a SQL Like comparsion.
See Also:
  • Field Details

  • Constructor Details

    • LikeUtil

      public LikeUtil(String pattern, Character escape, boolean ignorecase)
      Ctor.
      Parameters:
      pattern - is the SQL-like pattern to
      escape - is the escape character
      ignorecase - is true to ignore the case, or false if not
  • Method Details

    • compare

      public boolean compare(String compareString)
      Execute the string.
      Parameters:
      compareString - is the string to compare
      Returns:
      true if pattern matches, or false if not
    • resetPattern

      public void resetPattern(String pattern)
      Resets the search pattern.
      Parameters:
      pattern - is the new pattern to match against