Package org.mockito.internal.matchers
Class Find
- java.lang.Object
-
- org.mockito.internal.matchers.Find
-
- All Implemented Interfaces:
java.io.Serializable,ArgumentMatcher<java.lang.String>
public class Find extends java.lang.Object implements ArgumentMatcher<java.lang.String>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringregex
-
Constructor Summary
Constructors Constructor Description Find(java.lang.String regex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String actual)Informs if this matcher accepts the given argument.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mockito.ArgumentMatcher
type
-
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String actual)
Description copied from interface:ArgumentMatcherInforms if this matcher accepts the given argument.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- Specified by:
matchesin interfaceArgumentMatcher<java.lang.String>- Parameters:
actual- the argument- Returns:
- true if this matcher accepts the given argument.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-