public class NotStringPattern extends java.lang.Object implements StringPattern
StringPattern
.Constructor and Description |
---|
NotStringPattern(StringPattern pattern)
Creates an instance based on the specified pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String string)
Returns true if the wrapped
StringPattern returns
false and vice-versa. |
java.lang.String |
toString() |
public NotStringPattern(StringPattern pattern)
pattern
- Pattern who's matching result will be negate.
Must be not null.public boolean matches(java.lang.String string)
StringPattern
returns
false and vice-versa.matches
in interface StringPattern
string
- String to be matched. Can be null.public java.lang.String toString()
toString
in class java.lang.Object