Coverage details for edu.uci.ics.jung.graph.filters.TrivialFilter

LineHitsSource
1 /*
2 * Copyright (c) 2003, the JUNG Project and the Regents of the University
3 * of California
4 * All rights reserved.
5 *
6 * This software is open-source under the BSD license; see either
7 * "license.txt" or
8 * http://jung.sourceforge.net/license.txt for a description.
9 */
10 package edu.uci.ics.jung.graph.filters;
11  
12 import edu.uci.ics.jung.graph.Vertex;
13  
14 /**
15  * A small filter that returns the vertices and edges in the orignal Graph.
16  * @author danyelf
17  */
18 public class TrivialFilter extends GeneralVertexAcceptFilter implements EfficientFilter {
19  
20     /**
21      * Returns true for all vertices.
22      */
23     public boolean acceptVertex(Vertex vert) {
249        return true;
25     }
26  
27     public String getName() {
284        return "(Trivial)";
29     }
30  
312    static private TrivialFilter instance = null;
32  
33     /**
34      * This is a factory class; just ask for an instance of
35      * this one.
36      */
37     public static TrivialFilter getInstance() {
384        if (instance == null) {
392            instance = new TrivialFilter();
40         }
414        return instance;
42     }
43     
442    protected TrivialFilter() {
452    }
46  
47 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.