public final class OrFilter extends CompositeFilter
Constructor and Description |
---|
OrFilter(Collection<Filter> filters) |
OrFilter(Filter left,
Filter right)
Takes the result of the left and right filter and ORs them.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ConnectorObject obj)
Takes the result from the left and ORs it w/ the right filter.
|
<R,P> R |
accept(FilterVisitor<R,P> v,
P p)
Applies a
FilterVisitor to this Filter . |
Collection<Filter> |
getFilters() |
Filter |
getLeft() |
Filter |
getRight() |
String |
toString() |
public OrFilter(Filter left, Filter right)
public OrFilter(Collection<Filter> filters)
public boolean accept(ConnectorObject obj)
obj
- - The specified ConnectorObject.true
if the object matches (that is, satisfies all
selection criteria of) this filter; otherwise false
.Filter.accept(ConnectorObject)
public <R,P> R accept(FilterVisitor<R,P> v, P p)
Filter
FilterVisitor
to this Filter
.R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's
methods.v
- The filter visitor.p
- Optional additional visitor parameter.public Filter getLeft()
getLeft
in class CompositeFilter
public Filter getRight()
getRight
in class CompositeFilter
public Collection<Filter> getFilters()
getFilters
in class CompositeFilter
Copyright © 2022. All rights reserved.