Package org.refcodes.matcher
Class IsAssignableFromMatcherImpl<M>
- java.lang.Object
-
- org.refcodes.matcher.IsAssignableFromMatcherImpl<M>
-
-
Constructor Summary
Constructors Constructor Description IsAssignableFromMatcherImpl(java.lang.Class<?> aMatcheeType)
Constructs a IS ASSIGNABLE FROMMatcher
using the type of the matchees being the criteria to determine a match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.
-
-
-
Constructor Detail
-
IsAssignableFromMatcherImpl
public IsAssignableFromMatcherImpl(java.lang.Class<?> aMatcheeType)
Constructs a IS ASSIGNABLE FROMMatcher
using the type of the matchees being the criteria to determine a match.- Parameters:
aMatcheeType
- The type of the matchee to match.
-
-
Method Detail
-
isMatching
public boolean isMatching(M aMatchee)
Tests whether the given event is matching the mathcer's criteria.- Specified by:
isMatching
in interfaceMatcher<M>
- Parameters:
aMatchee
- The matchee used for testing matchability.- Returns:
- True in case the matchee matches the matcher's criteria, else false.
-
-