public abstract class CompareTo<T extends Comparable<T>> extends Object implements ArgumentMatcher<T>, Serializable
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getName() |
boolean |
matches(T actual)
Informs if this matcher accepts the given argument.
|
protected abstract boolean |
matchResult(int result) |
String |
toString() |
public CompareTo(T value)
public final boolean matches(T actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches
in interface ArgumentMatcher<T extends Comparable<T>>
actual
- the argumentprotected abstract String getName()
protected abstract boolean matchResult(int result)
Copyright © 2018. All rights reserved.