Class AbstractMatcher<M>

java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
Type Parameters:
M - The matchee type
All Implemented Interfaces:
Matchable<M>, Matcher<M>, org.refcodes.mixin.Schemable<MatcherSchema>
Direct Known Subclasses:
AbstractMatcheeMatcher, AbstractMatcherComposite, AbstractWildcardMatcher, AnyMatcher, IsAssignableFromMatcher, NoneMatcher, NotMatcher

public abstract class AbstractMatcher<M> extends Object implements Matcher<M>
The AbstractMatcher provides a base functionality for Matcher implementations.
  • Field Details

  • Constructor Details

    • AbstractMatcher

      public AbstractMatcher(String aDescription)
      Constructs an AbstractMatcher with the given description.
      Parameters:
      aDescription - The according matcher's description.
  • Method Details

    • toSchema

      public MatcherSchema toSchema()
      Specified by:
      toSchema in interface org.refcodes.mixin.Schemable<M>