edu.internet2.middleware.grouper.shibboleth.filter
Class OrFilter<T>
java.lang.Object
edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter<T>
edu.internet2.middleware.grouper.shibboleth.filter.AbstractSetOperationFilter<T>
edu.internet2.middleware.grouper.shibboleth.filter.OrFilter<T>
- All Implemented Interfaces:
- edu.internet2.middleware.grouper.filter.QueryFilter<T>, Filter<T>
public class OrFilter<T>
- extends AbstractSetOperationFilter<T>
Selects Grouper objects that match either of two Filter
s, e.g. the union of two
Filter
s. An object matches this filter if it matches either Filter
s.
Method Summary |
boolean |
matches(T t)
Returns true if the object matches the first filter or the second filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrFilter
public OrFilter(Filter filter0,
Filter filter1)
- Constructor. Creates a
UnionFilter
of the given Filter
s.
- Parameters:
filter0
- Matcherfilter1
- Matcher
matches
public boolean matches(T t)
- Returns true if the object matches the first filter or the second filter.
Returns true if the Grouper object would be returned by the filter. False otherwise.
- Parameters:
t
- the Grouper object
- Returns:
- if the Grouper object matches or not
Copyright © 2012 Internet2. All Rights Reserved.