Class PredicateAppliesMatcher<T>

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

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

      • PredicateAppliesMatcher

        protected PredicateAppliesMatcher​(@NotNull
                                          @NotNull Predicate<T> predicate)
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(T item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<T>
      • describeTo

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

        public static <T> org.hamcrest.Matcher<T> predicateApplies​(@NotNull
                                                                   @NotNull Predicate<T> predicate)