org.hamcrest.core
public class IsNot<T> extends org.hamcrest.BaseMatcher<T>
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object arg)
Evaluates the matcher for argument item.
|
static <T> org.hamcrest.Matcher<T> |
not(org.hamcrest.Matcher<T> matcher)
Inverts the rule.
|
static <T> org.hamcrest.Matcher<T> |
not(T value)
This is a shortcut to the frequently used not(equalTo(x)).
|
public IsNot(org.hamcrest.Matcher<T> matcher)
public boolean matches(java.lang.Object arg)
org.hamcrest.Matcherarg - the object against which the matcher is evaluated.true if item matches, otherwise false.BaseMatcherpublic void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribingdescription - The description to be built or appended to.public static <T> org.hamcrest.Matcher<T> not(org.hamcrest.Matcher<T> matcher)
public static <T> org.hamcrest.Matcher<T> not(T value)