public class Any extends ArgumentMatcher implements java.io.Serializable
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 static final Any ANY
public boolean matches(java.lang.Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
matches
in interface org.hamcrest.Matcher
matches
in class ArgumentMatcher
actual
- the argumentpublic void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
describeTo
in class ArgumentMatcher