Class LessOrEqualThanMatcherImpl<M extends Comparable<M>>

    • Constructor Detail

      • LessOrEqualThanMatcherImpl

        public LessOrEqualThanMatcherImpl​(M aMatchee)
        Constructs an LESS OR EQUAL THAN Matcher, comparing its matchee with the matchee provided to the Matcher.isMatching(Object) method using the Comparable.compareTo(Object) method to be implemented by the matchees.
        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 extends Comparable<M>>
        Parameters:
        aMatchee - The matchee used for testing matchability.
        Returns:
        True in case the matchee matches the matcher's criteria, else false.