public abstract class BaseFinder<S,T> extends java.lang.Object implements Finder<S,T>
Finders. These allow the creation of a specification to be applied to
objects of type T, to identify and return a Collection of any contained objects of type S.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<org.hamcrest.Matcher<S>> |
matchers |
| Constructor and Description |
|---|
BaseFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<S> |
allMatching(java.util.List<org.hamcrest.Matcher<S>> matchers,
java.util.Collection<S> items) |
private org.hamcrest.Matcher<S> |
allOf(java.util.List<org.hamcrest.Matcher<S>> matcherList) |
protected abstract void |
describeTargetTo(org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
protected abstract java.util.Collection<S> |
extractFrom(T context) |
java.util.Collection<S> |
findFrom(T context) |
Finder<S,T> |
with(org.hamcrest.Matcher<S> matcher) |
protected java.util.List<org.hamcrest.Matcher<S>> matchers
public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingprotected abstract void describeTargetTo(org.hamcrest.Description description)
protected java.util.Collection<S> allMatching(java.util.List<org.hamcrest.Matcher<S>> matchers, java.util.Collection<S> items)