Class AbstractMatcherComposite<M>

java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
org.refcodes.matcher.AbstractMatcherComposite<M>
Type Parameters:
M - The matchee type
All Implemented Interfaces:
Matchable<M>, Matcher<M>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Schemable
Direct Known Subclasses:
AndMatcher, OrMatcher

public abstract class AbstractMatcherComposite<M> extends AbstractMatcher<M> implements Matcher<M>
The AbstractMatcherComposite is composed of multiple Matcher instances queried upon match requests as of Matchable.isMatching(Object).
  • Field Details

    • _matchers

      protected Matcher<M>[] _matchers
  • Constructor Details

    • AbstractMatcherComposite

      public AbstractMatcherComposite(String aAlias, String aDescription, Matcher<M>... aMatchers)
      Constructs an AbstractMatcherComposite with the given description and matchers.
      Parameters:
      aAlias - The alias for the according Matcher implementation.
      aDescription - The according matcher's description.
      aMatchers - The matchers used when matching.
  • Method Details