Class TryMatchers.SuccessfulMatcher<A>

java.lang.Object
org.hamcrest.BaseMatcher<Try<A>>
org.hamcrest.TypeSafeMatcher<Try<A>>
io.atlassian.fugue.hamcrest.TryMatchers.SuccessfulMatcher<A>
All Implemented Interfaces:
org.hamcrest.Matcher<Try<A>>, org.hamcrest.SelfDescribing
Enclosing class:
TryMatchers

private static class TryMatchers.SuccessfulMatcher<A> extends org.hamcrest.TypeSafeMatcher<Try<A>>
Since:
4.7.0
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    protected void
    describeMismatchSafely(Try<A> actual, org.hamcrest.Description mismatchDescription)
     
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(Try<A> 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 A> subMatcher
  • Constructor Details

    • SuccessfulMatcher

      private SuccessfulMatcher(org.hamcrest.Matcher<? super A> subMatcher)
  • Method Details

    • matchesSafely

      protected boolean matchesSafely(Try<A> actual)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<Try<A>>
    • describeTo

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

      protected void describeMismatchSafely(Try<A> actual, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<Try<A>>