public abstract class BaseFinder<S,T> extends 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 List<org.hamcrest.Matcher<S>> |
matchers |
| Constructor and Description |
|---|
BaseFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<S> |
allMatching(List<org.hamcrest.Matcher<S>> matchers,
Collection<S> items) |
protected abstract void |
describeTargetTo(org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
protected abstract Collection<S> |
extractFrom(T context) |
Collection<S> |
findFrom(T context) |
Finder<S,T> |
with(org.hamcrest.Matcher<S> matcher) |
public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingprotected abstract Collection<S> extractFrom(T context)
protected abstract void describeTargetTo(org.hamcrest.Description description)
protected Collection<S> allMatching(List<org.hamcrest.Matcher<S>> matchers, Collection<S> items)
Copyright © 2015. All rights reserved.