Class FastSuffixMatcher


  • public class FastSuffixMatcher
    extends Object
    • Method Detail

      • create

        public static FastSuffixMatcher create​(List<MatchRule> rules)
        Creates a new matcher with the provided matching rules.
        Parameters:
        rules - - One or more matching rules to apply when Match is called
        Returns:
        FastSuffixMatcher
      • create

        public static FastSuffixMatcher create​(FastSuffixMatcher existing,
                                               List<MatchRule> rules)
        Creates a new matcher with the provided matching rules.
        Parameters:
        existing - - An existing matcher whose rules are to be baseline Match
        rules - - One or more matching rules to apply when Match is called
        Returns:
        FastSuffixMatcher
      • isMatch

        public Boolean isMatch​(String candidate)
        Parameters:
        candidate - - A string to match to the list of match rules
        Returns:
        true if at least one of the rules matched.
      • match

        public MatchResult match​(String candidate)
        Matches an input string to the list of match rules, and returns MatchResult accordingly.