Class CombinableMatcher.CombinableBothMatcher<X>

java.lang.Object
org.hamcrest.core.CombinableMatcher.CombinableBothMatcher<X>
Type Parameters:
X - the combined matcher type
Enclosing class:
CombinableMatcher<T>

public static final class CombinableMatcher.CombinableBothMatcher<X> extends Object
Allows syntactic sugar of using both and and.
See Also:
  • Constructor Details

  • Method Details

    • and

      public CombinableMatcher<X> and(Matcher<? super X> other)
      Specify the second matcher in a CombinableMatcher pair.
      Parameters:
      other - the second matcher
      Returns:
      the combined matcher