java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
org.refcodes.matcher.AbstractMatcheeMatcher<M>
org.refcodes.matcher.EqualWithMatcher<M>
- Type Parameters:
M- The matchee type.
- All Implemented Interfaces:
Matchable<M>,Matcher<M>,org.refcodes.mixin.AliasAccessor,org.refcodes.mixin.Schemable
An EQUAL WITH
Matcher, comparing its matchee with the matchee
provided to the isMatching(Object) method for equality.-
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
FieldsFields inherited from class org.refcodes.matcher.AbstractMatcheeMatcher
_matchee -
Constructor Summary
ConstructorsConstructorDescriptionEqualWithMatcher(M aMatchee) Constructs an EQUAL WITHMatcher, comparing its matchee with the matchee provided to theisMatching(Object)method for equality. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatching(M aMatchee) Tests whether the given event is matching the mathcer's criteria.Methods inherited from class org.refcodes.matcher.AbstractMatcheeMatcher
toSchemaMethods inherited from class org.refcodes.matcher.AbstractMatcher
getAliasMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
EqualWithMatcher
Constructs an EQUAL WITHMatcher, comparing its matchee with the matchee provided to theisMatching(Object)method for equality.- Parameters:
aMatchee- The matchee with which to match.
-
-
Method Details
-
isMatching
Tests whether the given event is matching the mathcer's criteria.- Specified by:
isMatchingin interfaceMatchable<M>- Parameters:
aMatchee- The matchee used for testing matchability.- Returns:
- True in case the matchee matches the matcher's criteria, else false.
-