Class EitherMatchers.LeftMatcher<L>

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

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

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

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

    Modifier and Type
    Method
    Description
    protected void
    describeMismatchSafely(Either<L,?> actual, org.hamcrest.Description mismatchDescription)
     
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(Either<L,?> 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 java.lang.Object

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

    • subMatcher

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

    • LeftMatcher

      private LeftMatcher(org.hamcrest.Matcher<? super L> subMatcher)
  • Method Details

    • matchesSafely

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

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

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