public final class PredicateMatcher<T>
extends org.hamcrest.TypeSafeMatcher<T>
| Constructor and Description |
|---|
PredicateMatcher(Predicate<T> predicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T> org.hamcrest.Matcher<T> |
matchesPredicate(Predicate<T> pred) |
protected boolean |
matchesSafely(T item) |
describeMismatch, describeMismatchSafely, matchesprotected boolean matchesSafely(T item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<T>public void describeTo(org.hamcrest.Description description)
public static <T> org.hamcrest.Matcher<T> matchesPredicate(Predicate<T> pred)
Copyright © 2021 SPF4J. All rights reserved.