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