public class InverseMatcher extends java.lang.Object implements ICharacterMatcher
| Constructor and Description |
|---|
InverseMatcher(ICharacterMatcher matcher)
Creates a new object that inverts the matching rule of the provided matcher
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(char ch)
Matches the character only if the provided object does NOT match it.
|
public InverseMatcher(ICharacterMatcher matcher)
matcher - the matcher whose behaviour will be invertedpublic boolean matches(char ch)
matches in interface ICharacterMatcherch - the character to be matchedICharacterMatcher.matches(char)