public class And extends ArgumentMatcher implements java.io.Serializable
Constructor and Description |
---|
And(java.util.List<org.hamcrest.Matcher> matchers) |
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)
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