public class CompositeFilter extends AbstractFilter
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
| Modifier and Type | Field and Description |
|---|---|
static short |
AND
the AND operator
|
static short |
OR
the OR operator
|
inverted| Constructor and Description |
|---|
CompositeFilter(Filterinterface filter1,
Filterinterface filter2,
short operator)
constructs a new CompositeFilter
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filter(Object entry)
filters the entry.
|
String |
getCriterium()
returns the filter criterium
|
protected String |
operatorToString()
Converts the operator of this filter into a human readable string.
|
accept, and, isInverted, or, setInverted, toStringpublic static final short AND
public static final short OR
public CompositeFilter(Filterinterface filter1, Filterinterface filter2, short operator)
filter1 - the first filterfilter2 - the second filteroperator - the operator (AND or OR)protected boolean filter(Object entry)
AbstractFilterfilter in class AbstractFilterentry - the entry to filter.AbstractFilter.filter(java.lang.Object)protected String operatorToString()
public String getCriterium()
AbstractFiltergetCriterium in interface FilterinterfacegetCriterium in class AbstractFilterAbstractFilter.getCriterium()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.