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