public class IsAnything<T>
extends org.hamcrest.BaseMatcher<T>
true
.Constructor and Description |
---|
IsAnything() |
IsAnything(java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static <T> org.hamcrest.Matcher<T> |
any(java.lang.Class<T> type)
This matcher always evaluates to true.
|
static <T> org.hamcrest.Matcher<T> |
anything()
This matcher always evaluates to true.
|
static <T> org.hamcrest.Matcher<T> |
anything(java.lang.String description)
This matcher always evaluates to true.
|
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object o)
Evaluates the matcher for argument item.
|
public IsAnything()
public IsAnything(java.lang.String description)
public boolean matches(java.lang.Object o)
org.hamcrest.Matcher
o
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribing
description
- The description to be built or appended to.public static <T> org.hamcrest.Matcher<T> anything()
public static <T> org.hamcrest.Matcher<T> anything(java.lang.String description)
description
- A meaningful string used when describing itself.public static <T> org.hamcrest.Matcher<T> any(java.lang.Class<T> type)