Class EitherMatchers.RightMatcher<R>

java.lang.Object
org.hamcrest.BaseMatcher<Either<?,R>>
org.hamcrest.TypeSafeMatcher<Either<?,R>>
io.atlassian.fugue.hamcrest.EitherMatchers.RightMatcher<R>
All Implemented Interfaces:
org.hamcrest.Matcher<Either<?,R>>, org.hamcrest.SelfDescribing
Enclosing class:
EitherMatchers

private static class EitherMatchers.RightMatcher<R> extends org.hamcrest.TypeSafeMatcher<Either<?,R>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.hamcrest.Matcher<? super R>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    RightMatcher(org.hamcrest.Matcher<? super R> subMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    describeMismatchSafely(Either<?,R> actual, org.hamcrest.Description mismatchDescription)
     
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(Either<?,R> actual)
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • subMatcher

      private final org.hamcrest.Matcher<? super R> subMatcher
  • Constructor Details

    • RightMatcher

      private RightMatcher(org.hamcrest.Matcher<? super R> subMatcher)
  • Method Details

    • matchesSafely

      protected boolean matchesSafely(Either<?,R> actual)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<Either<?,R>>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      protected void describeMismatchSafely(Either<?,R> actual, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<Either<?,R>>