public class Any extends java.lang.Object implements ArgumentMatcher<java.lang.Object>, VarargMatcher, java.io.Serializable
Constructor and Description |
---|
Any() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.Object actual)
Informs if this matcher accepts the given argument.
|
java.lang.String |
toString() |
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.
See the example in the top level javadoc for ArgumentMatcher
matches
in interface ArgumentMatcher<java.lang.Object>
actual
- the argumentpublic java.lang.String toString()
toString
in class java.lang.Object