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
ConstructorsConstructorDescriptionCombinableBothMatcher(Matcher<? super X> matcher) Constructor, best called fromCombinableMatcher.both(Matcher). -
Method Summary
Modifier and TypeMethodDescriptionSpecify the second matcher in aCombinableMatcherpair.
-
Constructor Details
-
CombinableBothMatcher
Constructor, best called fromCombinableMatcher.both(Matcher).- Parameters:
matcher- the first matcher
-
-
Method Details
-
and
Specify the second matcher in aCombinableMatcherpair.- Parameters:
other- the second matcher- Returns:
- the combined matcher
-