Class Matcher<T>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

    public abstract class Matcher<T>
    extends org.hamcrest.TypeSafeMatcher<T>
    • Constructor Detail

      • Matcher

        public Matcher​(String format,
                       Object... args)
    • Method Detail

      • describeTo

        public final void describeTo​(org.hamcrest.Description description)
      • getDescription

        public final String getDescription()
      • matchesSafely

        public abstract boolean matchesSafely​(T item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<T>
      • describeMismatchSafely

        public void describeMismatchSafely​(T item,
                                           org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<T>