Class CombinableMatcher.CombinableEitherMatcher<X>

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

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

  • Method Details

    • or

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