M
- The matchee type, which must implement the Comparable
interface for being able to do the according comparisons required by
this Matcher
.public class GreaterThanMatcherImpl<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 |
---|
GreaterThanMatcherImpl(M aMatchee)
Constructs an GREATER 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 GreaterThanMatcherImpl(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)
Matcher
isMatching
in interface Matcher<M extends Comparable<M>>
aMatchee
- The matchee used for testing matchability.Copyright © 2017. All rights reserved.