public class AnyVararg extends Object implements ArgumentMatcher, VarargMatcher, Serializable
Modifier and Type | Field and Description |
---|---|
static ArgumentMatcher |
ANY_VARARG |
Constructor and Description |
---|
AnyVararg() |
public static final ArgumentMatcher ANY_VARARG
public boolean matches(Object arg)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
The argument is not using generic type in order to force explicit casting in the implementation. This way it is easier to debug when incompatible arguments are passed to the matchers. You have to trust us on this one. //TODO SF make sure it makes sense to receive an Object here instead of T and document it.
See the example in the top level javadoc for ArgumentMatcher
matches
in interface ArgumentMatcher
arg
- the argument