public class Not extends ArgumentMatcher implements java.io.Serializable
| Constructor and Description |
|---|
Not(org.hamcrest.Matcher first) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(java.lang.Object actual)
Returns whether this matcher accepts the given argument.
|
public boolean matches(java.lang.Object actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
matches in interface org.hamcrest.Matchermatches in class ArgumentMatcheractual - the argumentpublic void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingdescribeTo in class ArgumentMatcher