Package org.hamcrest.core
Class CombinableMatcher.CombinableEitherMatcher<X>
java.lang.Object
org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher<X>
- Type Parameters:
X
- the combined matcher type
- Enclosing class:
CombinableMatcher<T>
Allows syntactic sugar of using
either
and or
.- See Also:
-
Constructor Summary
ConstructorDescriptionCombinableEitherMatcher
(Matcher<? super X> matcher) Constructor, best called fromCombinableMatcher.either(Matcher)
-
Method Summary
Modifier and TypeMethodDescriptionSpecify the second matcher in aCombinableMatcher
pair.
-
Constructor Details
-
CombinableEitherMatcher
Constructor, best called fromCombinableMatcher.either(Matcher)
- Parameters:
matcher
- the matcher
-
-
Method Details
-
or
Specify the second matcher in aCombinableMatcher
pair.- Parameters:
other
- the second matcher- Returns:
- the combined matcher
-