public class AppliesTo<T>
extends org.hamcrest.TypeSafeMatcher<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AppliesTo(Predicate<T> predicate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<T> |
appliesTo(Predicate<T> predicate) |
static <T> org.hamcrest.Matcher<T> |
apply(Predicate<T> predicate) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(T item) |
protected Predicate<T> |
predicate() |
describeMismatch, describeMismatchSafely, matches@Nonnull public static <T> org.hamcrest.Matcher<T> appliesTo(@Nonnull Predicate<T> predicate)
protected boolean matchesSafely(T item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<T>public void describeTo(@Nonnull org.hamcrest.Description description)
Copyright © 2017 echocat. All rights reserved.