Package org.hamcrest
Class Condition<T>
java.lang.Object
org.hamcrest.Condition<T>
A Condition implements part of a multi-step match. We sometimes need to write matchers
that have a sequence of steps, where each step depends on the result of the previous
step and we can stop processing as soon as a step fails. These classes provide
infrastructure for writing such a sequence.
Based on https://github.com/npryce/maybe-java
- Author:
- Steve Freeman 2012 http://www.hamcrest.com
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract <U> Condition
<U> and
(Condition.Step<? super T, U> mapping) static <T> Condition
<T> matched
(T theValue, Description mismatch) final boolean
abstract boolean
static <T> Condition
<T> final <U> Condition
<U> then
(Condition.Step<? super T, U> mapping)
-
Field Details
-
NOT_MATCHED
-
-
Method Details
-
matching
-
and
-
matching
-
then
-
notMatched
-
matched
-