java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
org.refcodes.matcher.IsAssignableFromMatcher<M>
- Type Parameters:
M
- The matchee type
- All Implemented Interfaces:
Matchable<M>
,Matcher<M>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.schema.Schemable
A IS ASSIGNABLE FROM implementation of a
Matcher
by type.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIsAssignableFromMatcher
(Class<?> aMatcheeType) Constructs a IS ASSIGNABLE FROMMatcher
using the type of the matchees being the criteria to determine a match. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMatching
(M aMatchee) Tests whether the given event is matching the mathcer's criteria.toSchema()
Methods inherited from class org.refcodes.matcher.AbstractMatcher
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
IsAssignableFromMatcher
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 Details
-
isMatching
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.
-
toSchema
-