org.opensaml.xml.security
Class CriteriaFilteringIterable<T>

java.lang.Object
  extended by org.opensaml.xml.security.CriteriaFilteringIterable<T>
Type Parameters:
T - the type of candidate elements being evaluated
All Implemented Interfaces:
java.lang.Iterable<T>

public class CriteriaFilteringIterable<T>
extends java.lang.Object
implements java.lang.Iterable<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.


Constructor Summary
CriteriaFilteringIterable(java.lang.Iterable<? extends T> candidatesIterable, java.util.Set<EvaluableCriteria<T>> criteria, boolean meetAllCriteria, boolean unevaluableSatisfies)
          Constructor.
 
Method Summary
 java.util.Iterator<T> iterator()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaFilteringIterable

public CriteriaFilteringIterable(java.lang.Iterable<? extends T> candidatesIterable,
                                 java.util.Set<EvaluableCriteria<T>> criteria,
                                 boolean meetAllCriteria,
                                 boolean unevaluableSatisfies)
Constructor.

Parameters:
candidatesIterable - the candidates to evaluate
criteria - the set of criteria against which to evaluate the candidates
meetAllCriteria - whether a candidate must meet all criteria, or just one
unevaluableSatisfies - 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 element
Method Detail

iterator

public java.util.Iterator<T> iterator()

Specified by:
iterator in interface java.lang.Iterable<T>


Copyright © 2006-2012 Internet2. All Rights Reserved.