|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.CriteriaFilteringIterable<T>
T
- the type of candidate elements being evaluatedpublic class CriteriaFilteringIterable<T>
An implementation of 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
.
Field Summary | |
---|---|
private Iterable<? extends T> |
candidates
The candidates to evaluate. |
private Set<EvaluableCriteria<T>> |
criteriaSet
The set of criteria against which to evaluate the candidates. |
private boolean |
meetAll
Flag indicating whether the candidate must satisfy all the criteria in the set, or just one. |
private boolean |
unevaledSatisfies
Flag indicating how candidates which can not be evaluated by a criteria are to be handled. |
Constructor Summary | |
---|---|
CriteriaFilteringIterable(Iterable<? extends T> candidatesIterable,
Set<EvaluableCriteria<T>> criteria,
boolean meetAllCriteria,
boolean unevaluableSatisfies)
Constructor. |
Method Summary | |
---|---|
Iterator<T> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Iterable<? extends T> candidates
private Set<EvaluableCriteria<T>> criteriaSet
private boolean meetAll
private boolean unevaledSatisfies
Constructor Detail |
---|
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 elementMethod Detail |
---|
public Iterator<T> iterator()
iterator
in interface Iterable<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |