M
- The matchee type, which must implement the Comparable
interface for being able to do the according comparisons required by
this Matcher
.public class GreaterOrEqualThanMatcherImpl<M extends Comparable<M>> extends Object implements Matcher<M>
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.Constructor and Description |
---|
GreaterOrEqualThanMatcherImpl(M aMatchee)
Constructs an GREATER 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. |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.
|
public GreaterOrEqualThanMatcherImpl(M aMatchee)
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.aMatchee
- The matchee with which to match.public boolean isMatching(M aMatchee)
isMatching
in interface Matcher<M extends Comparable<M>>
aMatchee
- The matchee used for testing matchability.Copyright © 2015. All rights reserved.