org.apache.tapestry.util.text
Class InverseMatcher
java.lang.Object
org.apache.tapestry.util.text.InverseMatcher
- All Implemented Interfaces:
- ICharacterMatcher
public class InverseMatcher
- extends Object
- implements ICharacterMatcher
Matches a given character only if the provided object does NOT match it.
- Since:
- 4.0
- Author:
- mb
Method Summary |
boolean |
matches(char ch)
Matches the character only if the provided object does NOT match it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InverseMatcher
public InverseMatcher(ICharacterMatcher matcher)
- Creates a new object that inverts the matching rule of the provided matcher.
- Parameters:
matcher
- the matcher whose behaviour will be inverted
matches
public boolean matches(char ch)
- Matches the character only if the provided object does NOT match it.
- Specified by:
matches
in interface ICharacterMatcher
- Parameters:
ch
- the character to be matched
- Returns:
- true if the character matches the rule
- See Also:
ICharacterMatcher.matches(char)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.