Package org.refcodes.matcher
Class EqualWithMatcherImpl<M>
- java.lang.Object
-
- org.refcodes.matcher.EqualWithMatcherImpl<M>
-
- Type Parameters:
M
- The matchee type.
- All Implemented Interfaces:
Matcher<M>
public class EqualWithMatcherImpl<M> extends java.lang.Object implements Matcher<M>
An EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theisMatching(Object)
method for equality.
-
-
Constructor Summary
Constructors Constructor Description EqualWithMatcherImpl(M aMatchee)
Constructs an EQUAL WITHMatcher
, comparing its matchee with the matchee provided to theisMatching(Object)
method for equality.
-
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
-
EqualWithMatcherImpl
public EqualWithMatcherImpl(M aMatchee)
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 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.
-
-