Class GreaterOrEqualThanMatcher<M extends Comparable<M>>

Type Parameters:
M - The matchee type, which must implement the Comparable interface for being able to do the according comparisons required by this Matcher.
All Implemented Interfaces:
Matchable<M>, Matcher<M>, org.refcodes.mixin.Schemable<MatcherSchema>

public class GreaterOrEqualThanMatcher<M extends Comparable<M>> extends AbstractMatcheeMatcher<M> implements Matcher<M>
A GREATER OR EQUAL THAN Matcher, comparing its matchee with the matchee provided to the Matchable.isMatching(Object) method using the Comparable.compareTo(Object) method to be implemented by the matchees.
  • Constructor Details

    • GreaterOrEqualThanMatcher

      public GreaterOrEqualThanMatcher(M aMatchee)
      Constructs an GREATER OR EQUAL THAN Matcher, comparing its matchee with the matchee provided to the Matchable.isMatching(Object) method using the Comparable.compareTo(Object) method to be implemented by the matchee.
      Parameters:
      aMatchee - The matchee with which to match.
  • Method Details

    • isMatching

      public boolean isMatching(M aMatchee)
      Tests whether the given event is matching the mathcer's criteria.
      Specified by:
      isMatching in interface Matchable<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.