public abstract class StreamBasedMatcherSupport<V,T>
extends org.hamcrest.BaseMatcher<V>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAXIMUM_MISMATCHES_TO_REPORT |
| Modifier | Constructor and Description |
|---|---|
protected |
StreamBasedMatcherSupport(Function<V,Stream<T>> mapper,
Iterable<org.hamcrest.Matcher<T>> matchers) |
protected |
StreamBasedMatcherSupport(Function<V,Stream<T>> mapper,
org.hamcrest.Matcher<T> firstMatcher,
org.hamcrest.Matcher<T>[] otherMatchers) |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> Iterable<org.hamcrest.Matcher<T>> |
collectMatchers(org.hamcrest.Matcher<T> firstMatcher,
org.hamcrest.Matcher<T>[] otherMatchers) |
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
protected void |
describeMismatch(Stream<T> items,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
protected abstract String |
description() |
protected Function<V,Stream<T>> |
mapper() |
protected Iterable<org.hamcrest.Matcher<T>> |
matchers() |
boolean |
matches(Object item) |
protected abstract boolean |
matches(Stream<T> items) |
@Nonnegative protected static final int MAXIMUM_MISMATCHES_TO_REPORT
protected StreamBasedMatcherSupport(@Nonnull Function<V,Stream<T>> mapper, @Nonnull org.hamcrest.Matcher<T> firstMatcher, @Nullable org.hamcrest.Matcher<T>[] otherMatchers)
@Nonnull protected static <T> Iterable<org.hamcrest.Matcher<T>> collectMatchers(@Nonnull org.hamcrest.Matcher<T> firstMatcher, @Nullable org.hamcrest.Matcher<T>[] otherMatchers)
public void describeMismatch(@Nullable Object item, @Nonnull org.hamcrest.Description description)
protected void describeMismatch(@Nonnull Stream<T> items, @Nonnull org.hamcrest.Description description)
public void describeTo(@Nonnull org.hamcrest.Description description)
protected abstract String description()
Copyright © 2017 echocat. All rights reserved.