public class StartsWith extends java.lang.Object implements ArgumentMatcher<java.lang.String>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
prefix |
Constructor and Description |
---|
StartsWith(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String actual)
Informs if this matcher accepts the given argument.
|
java.lang.String |
toString() |
public boolean matches(java.lang.String 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.String>
actual
- the argumentpublic java.lang.String toString()
toString
in class java.lang.Object