1
2
3
4
5
6
7
8
9
10 package nl.tudelft.simulation.language.filters;
11
12
13 /***
14 * The Zero filter does not filter any value.
15 * <p>
16 * (c) copyright 2004 <a href="http://www.simulation.tudelft.nl/dsol/">Delft
17 * University of Technology </a>, the Netherlands. <br>
18 * See for project information <a href="http://www.simulation.tudelft.nl/dsol/">
19 * www.simulation.tudelft.nl/dsol </a> <br>
20 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
21 * License (GPL) </a>, no warranty <br>
22 *
23 * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm"> Peter
24 * Jacobs </a>
25 * @version 1.0 Oct 26, 2004
26 * @since 1.2
27 */
28 public class ZeroFilter extends AbstractFilter
29 {
30 /***
31 * constructs a new ZeroFilte
32 */
33 public ZeroFilter()
34 {
35 super();
36 }
37
38 /***
39 * @see nl.tudelft.simulation.language.filters.AbstractFilter#filter(java.lang.Object)
40 * @return whether to accept the value; null values are accepted.
41 */
42 protected boolean filter(final Object entry)
43 {
44 return true;
45 }
46
47 /***
48 * @see nl.tudelft.simulation.language.filters.Filterinterface#getCriterium()
49 */
50 public String getCriterium()
51 {
52 return "accepts every entry";
53 }
54 }