public class NotStringPattern extends 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(String string)
Returns true if the wrapped
StringPattern returns
false and vice-versa. |
String |
toString() |
public NotStringPattern(StringPattern pattern)
pattern - Pattern who's matching result will be negate.
Must be not null.public boolean matches(String string)
StringPattern returns
false and vice-versa.matches in interface StringPatternstring - String to be matched. Can be null.Copyright © 2014. All rights reserved.