Package org.refcodes.matcher
Interface Matcher<M>
-
- Type Parameters:
M
- The matchee type.See http://code.mycila.com/wiki/MycilaEvent
- All Known Subinterfaces:
PathMatcher
- All Known Implementing Classes:
AndMatcherImpl
,AnyMatcherImpl
,EqualWithMatcherImpl
,GreaterOrEqualThanMatcherImpl
,GreaterThanMatcherImpl
,IsAssignableFromMatcherImpl
,LessOrEqualThanMatcherImpl
,LessThanMatcherImpl
,NoneMatcherImpl
,NotEqualWithMatcherImpl
,NotMatcherImpl
,OrMatcherImpl
,PathMatcherImpl
public interface Matcher<M>
The matcher is used to test whether a matchee matches certain criteria. An matcher may be an own implementation or it my get somehow 'nested' (inspired by http://code.mycila.com/wiki/MycilaEvent) having different matchers which in combination do some custom matching as needed by the business logic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.
-
-
-
Method Detail
-
isMatching
boolean isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.- Parameters:
aMatchee
- The matchee used for testing matchability.- Returns:
- True in case the matchee matches the matcher's criteria, else false.
-
-