Class NotEqualWithMatcherImpl<M>

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


    public class NotEqualWithMatcherImpl<M>
    extends Object
    implements Matcher<M>
    A NOT EQUAL WITH Matcher, comparing its matchee with the matchee provided to the isMatching(Object) method for equality.
    • Constructor Detail

      • NotEqualWithMatcherImpl

        public NotEqualWithMatcherImpl​(M aMatchee)
        Constructs a NOT EQUAL WITH Matcher, comparing its matchee with the matchee provided to the isMatching(Object) method for equality.
        Parameters:
        aMatchee - The matchee with which to match.
    • 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.