org.hamcrest.core
public class IsNull<T> extends org.hamcrest.BaseMatcher<T>
| Constructor and Description |
|---|
IsNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object o)
Evaluates the matcher for argument item.
|
static <T> org.hamcrest.Matcher<T> |
notNullValue()
Matches if value is not null.
|
static <T> org.hamcrest.Matcher<T> |
notNullValue(java.lang.Class<T> type)
Matches if value is not null.
|
static <T> org.hamcrest.Matcher<T> |
nullValue()
Matches if value is null.
|
static <T> org.hamcrest.Matcher<T> |
nullValue(java.lang.Class<T> type)
Matches if value is null.
|
public boolean matches(java.lang.Object o)
org.hamcrest.Matchero - 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> nullValue()
public static <T> org.hamcrest.Matcher<T> notNullValue()
public static <T> org.hamcrest.Matcher<T> nullValue(java.lang.Class<T> type)
public static <T> org.hamcrest.Matcher<T> notNullValue(java.lang.Class<T> type)