Package classycle.util
Class NotStringPattern
java.lang.Object
classycle.util.NotStringPattern
- All Implemented Interfaces:
StringPattern
Logical NOT operation on the result of a wrapped
StringPattern
.- Author:
- Franz-Josef Elmer
-
Constructor Summary
ConstructorsConstructorDescriptionNotStringPattern
(StringPattern pattern) Creates an instance based on the specified pattern. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the wrappedStringPattern
returns false and vice-versa.toString()
-
Constructor Details
-
NotStringPattern
Creates an instance based on the specified pattern.- Parameters:
pattern
- Pattern who's matching result will be negate. Must be not null.
-
-
Method Details
-
matches
Returns true if the wrappedStringPattern
returns false and vice-versa.- Specified by:
matches
in interfaceStringPattern
- Parameters:
string
- String to be matched. Can be null.
-
toString
-