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)
ArgumentMatcherThe 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 © 2024. All rights reserved.