Class PersistentMatchers.EqualsMatcher<T>
java.lang.Object
de.ppi.deepsampler.persistence.api.PersistentMatchers.EqualsMatcher<T>
- Type Parameters:
T- The type of the objects that will be compared by this Matcher.
- All Implemented Interfaces:
PersistentMatcher<T>
- Enclosing class:
- PersistentMatchers
public static class PersistentMatchers.EqualsMatcher<T> extends java.lang.Object implements PersistentMatcher<T>
This Matcher is typically used by
PersistentMatchers.equalsMatcher(), but since it is also used internally in various places
it is implemented as a class rather than a simple lambda, as it is the case with most of the Matchers.-
Constructor Summary
Constructors Constructor Description EqualsMatcher() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EqualsMatcher
public EqualsMatcher()
-
-
Method Details
-
matches
Description copied from interface:PersistentMatcherCompares two values in an arbitrary way with each other.- Specified by:
matchesin interfacePersistentMatcher<T>- Parameters:
first- the first value (real value in the execution of the test)second- the second value (the persistent constant value)- Returns:
- true if the objects should be considered as matching, false otherwise
-