java.io.Serializable
, VarargMatcher
public class AnyVararg extends ArgumentMatcher implements VarargMatcher, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
static org.hamcrest.Matcher |
ANY_VARARG |
Constructor | Description |
---|---|
AnyVararg() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
matches(java.lang.Object arg) |
Returns whether this matcher accepts the given argument.
|
describeTo
public boolean matches(java.lang.Object arg)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
matches
in class ArgumentMatcher
arg
- the argument