Class AndFilter
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.filter.CompositeFilter
-
- org.identityconnectors.framework.common.objects.filter.AndFilter
-
- All Implemented Interfaces:
Filter
public final class AndFilter extends CompositeFilter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(ConnectorObject obj)Ands the left and right filters.<R,P>
Raccept(FilterVisitor<R,P> v, P p)Applies aFilterVisitorto thisFilter.Collection<Filter>getFilters()FiltergetLeft()FiltergetRight()StringtoString()
-
-
-
Constructor Detail
-
AndFilter
public AndFilter(Collection<Filter> filters)
-
-
Method Detail
-
accept
public boolean accept(ConnectorObject obj)
Ands the left and right filters.- Parameters:
obj- - The specified ConnectorObject.- Returns:
trueif the object matches (that is, satisfies all selection criteria of) this filter; otherwisefalse.- See Also:
Filter.accept(ConnectorObject)
-
accept
public <R,P> R accept(FilterVisitor<R,P> v, P p)
Description copied from interface:FilterApplies aFilterVisitorto thisFilter.- Type Parameters:
R- The return type of the visitor's methods.P- The type of the additional parameters to the visitor's methods.- Parameters:
v- The filter visitor.p- Optional additional visitor parameter.- Returns:
- A result as specified by the visitor.
-
getLeft
public Filter getLeft()
- Overrides:
getLeftin classCompositeFilter- Returns:
- the left side of the composite.
-
getRight
public Filter getRight()
- Overrides:
getRightin classCompositeFilter- Returns:
- the right side of the composite.
-
getFilters
public Collection<Filter> getFilters()
- Overrides:
getFiltersin classCompositeFilter
-
-