Class SearchPattern


  • @Deprecated
    public class SearchPattern
    extends java.lang.Object
    Deprecated.
    For internal use only.
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchPattern()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean wildcardMatch​(@Nullable java.lang.String pattern, @Nullable java.lang.String text)
      Deprecated.
      Performs a case-insensitive wildcard match against two strings.
      static boolean wildcardMatch​(@Nullable java.lang.String pattern, @Nullable java.lang.String text, boolean caseInsensitive)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchPattern

        public SearchPattern()
        Deprecated.
    • Method Detail

      • wildcardMatch

        public static boolean wildcardMatch​(@Nullable java.lang.String pattern,
                                            @Nullable java.lang.String text)
        Deprecated.
        Performs a case-insensitive wildcard match against two strings. This method works with pseduo-regex chars; specifically ? and * are supported.
        • An asterisk (*) represents any combination of characters
        • A question mark (?) represents any single character
        Parameters:
        pattern - the regex-like pattern to be compared against
        text - the string to compare against the pattern
        Returns:
        whether the text matches the pattern
      • wildcardMatch

        public static boolean wildcardMatch​(@Nullable java.lang.String pattern,
                                            @Nullable java.lang.String text,
                                            boolean caseInsensitive)
        Deprecated.