Package ru.ewc.decita.conditions
Class EqualsCondition
java.lang.Object
ru.ewc.decita.conditions.BinaryCondition
ru.ewc.decita.conditions.EqualsCondition
- All Implemented Interfaces:
Condition
- Direct Known Subclasses:
AlwaysTrueCondition
I am a specific
Condition
that checks if my right part exactly equals my left one.- Since:
- 0.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final org.hamcrest.Matcher<Coordinate>
Creates aMatcher
that corresponds to the given operation andCoordinate
.Methods inherited from class ru.ewc.decita.conditions.BinaryCondition
evaluate, isEvaluated, isSatisfied, rightPart
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.ewc.decita.conditions.Condition
isNotSatisfied
-
Constructor Details
-
EqualsCondition
Ctor.- Parameters:
left
- TheCoordinate
that is its left part.right
- TheCoordinate
that is its right part.
-
-
Method Details
-
comparisonFor
Description copied from class:BinaryCondition
Creates aMatcher
that corresponds to the given operation andCoordinate
.- Specified by:
comparisonFor
in classBinaryCondition
- Returns:
- The
Matcher
to use in thisCondition
.
-