Class AnyMatcherImpl<M>

  • Type Parameters:
    M - The matchee type.
    All Implemented Interfaces:
    Matcher<M>

    public class AnyMatcherImpl<M>
    extends Object
    implements Matcher<M>
    An ANY implementation of a Matcher which always returns true.
    • Constructor Detail

      • AnyMatcherImpl

        public AnyMatcherImpl()
    • Method Detail

      • isMatching

        public boolean isMatching​(M aMatchee)
        Tests whether the given event is matching the mathcer's criteria.
        Specified by:
        isMatching in interface Matcher<M>
        Parameters:
        aMatchee - The matchee used for testing matchability.
        Returns:
        True in case the matchee matches the matcher's criteria, else false.