T
- the type of candidate elements being evaluatedpublic class CriteriaFilteringIterable<T> extends Object implements Iterable<T>
Iterable
which wraps another underlying Iterable in order to support
production of instances of CriteriaFilteringIterator
based on the underlying Iterable's Iterator.
For iterator behavior and meaning and use of the parameters, see CriteriaFilteringIterator
.Constructor and Description |
---|
CriteriaFilteringIterable(Iterable<? extends T> candidatesIterable,
Set<EvaluableCriteria<T>> criteria,
boolean meetAllCriteria,
boolean unevaluableSatisfies)
Constructor.
|
public CriteriaFilteringIterable(Iterable<? extends T> candidatesIterable, Set<EvaluableCriteria<T>> criteria, boolean meetAllCriteria, boolean unevaluableSatisfies)
candidatesIterable
- the candidates to evaluatecriteria
- the set of criteria against which to evaluate the candidatesmeetAllCriteria
- whether a candidate must meet all criteria, or just oneunevaluableSatisfies
- whether a can-not-evaluate result of a particular criteria's evaluation
is treated as the candidate having satisfied or not satisfied the criteria, for purposes
of determinig whether to return the elementCopyright © 1999–2013. All rights reserved.