Class MatcherFactory

java.lang.Object
org.apache.juneau.objecttools.MatcherFactory
Direct Known Subclasses:
NumberMatcherFactory, StringMatcherFactory, TimeMatcherFactory

public abstract class MatcherFactory extends Object
Common interface for matchers used by the ObjectSearcher class.
See Also:
  • Constructor Details

  • Method Details

    • canMatch

      public abstract boolean canMatch(ClassMeta<?> cm)
      Returns true if this matcher can be used on the specified object.
      Parameters:
      cm - The class type of the object being matched. Never null.
      Returns:
      true if this matcher can be used on the specified object.
    • create

      public abstract AbstractMatcher create(String pattern)
      Instantiates a matcher for the specified pattern.
      Parameters:
      pattern - The pattern string.
      Returns:
      A matcher for the specified pattern.