Class PredicateAppliesMatcher<T>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<T>
-
- com.atlassian.bamboo.utils.matchers.PredicateAppliesMatcher<T>
-
- All Implemented Interfaces:
org.hamcrest.Matcher<T>
,org.hamcrest.SelfDescribing
public class PredicateAppliesMatcher<T> extends org.hamcrest.TypeSafeMatcher<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PredicateAppliesMatcher(@NotNull Predicate<T> predicate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(T item)
static <T> org.hamcrest.Matcher<T>
predicateApplies(@NotNull Predicate<T> predicate)
-
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
-
-
-
-
Method Detail
-
matchesSafely
protected boolean matchesSafely(T item)
- Specified by:
matchesSafely
in classorg.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)
-
-