[New] added isIn Report Filter
This commit is contained in:
parent
4ffd92e0a7
commit
2ddc98fe04
|
@ -0,0 +1,20 @@
|
|||
package li.strolch.report.policy;
|
||||
|
||||
import li.strolch.agent.api.ComponentContainer;
|
||||
import li.strolch.persistence.api.StrolchTransaction;
|
||||
import li.strolch.utils.ObjectHelper;
|
||||
|
||||
public class IsInReportFilter extends ReportFilterPolicy {
|
||||
|
||||
public IsInReportFilter(ComponentContainer container, StrolchTransaction tx) {
|
||||
super(container, tx);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean filter(Object left, Object right, boolean negate) {
|
||||
if (negate)
|
||||
return !ObjectHelper.isIn(left, right, false);
|
||||
else
|
||||
return ObjectHelper.isIn(left, right, false);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue