edu.internet2.middleware.grouper.shibboleth.filter
Class MinusFilter<T>

java.lang.Object
  extended by edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter<T>
      extended by edu.internet2.middleware.grouper.shibboleth.filter.AbstractSetOperationFilter<T>
          extended by edu.internet2.middleware.grouper.shibboleth.filter.MinusFilter<T>
All Implemented Interfaces:
edu.internet2.middleware.grouper.filter.QueryFilter<T>, Filter<T>

public class MinusFilter<T>
extends AbstractSetOperationFilter<T>

Selects Grouper objects that match the complement of two Filters, e.g. the result of the first Filter minus the result of the second Filter. An object matches this filter if it matches the first Filter and not the second Filter.


Constructor Summary
MinusFilter(Filter filter0, Filter filter1)
          Constructor.
 
Method Summary
 boolean matches(T t)
          Returns true if the object matches the first filter and not the second filter.
 
Methods inherited from class edu.internet2.middleware.grouper.shibboleth.filter.AbstractSetOperationFilter
getFilter0, getFilter1, setFilter0, setFilter1
 
Methods inherited from class edu.internet2.middleware.grouper.shibboleth.filter.AbstractFilter
getGrouperSession, getQueryFilter, getResults, setQueryFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinusFilter

public MinusFilter(Filter filter0,
                   Filter filter1)
Constructor. Creates an ComplementFilter of the given Filters.

Parameters:
filter0 - MatchQueryFilter
filter1 - MatchQueryFilter
Method Detail

matches

public boolean matches(T t)
Returns true if the object matches the first filter and not 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.