Coverage details for edu.uci.ics.jung.graph.predicates.ContainsUserDataKeyVertexPredicate

LineHitsSource
1 /*
2  * Copyright (c) 2003, the JUNG Project and the Regents of the University of
3  * California All rights reserved.
4  *
5  * This software is open-source under the BSD license; see either "license.txt"
6  * or http://jung.sourceforge.net/license.txt for a description.
7  *
8  * Created on Sep 13, 2004
9  */
10 package edu.uci.ics.jung.graph.predicates;
11  
12 import edu.uci.ics.jung.graph.ArchetypeVertex;
13  
14 /**
15  * Returns true iff the vertex contains the specified user data key.
16  *
17  * @author Joshua O'Madadhain
18  */
19 public class ContainsUserDataKeyVertexPredicate extends VertexPredicate
20 {
21     protected Object key;
22     
23     public ContainsUserDataKeyVertexPredicate(Object key)
240    {
250        this.key = key;
260    }
27     
28     /**
29      * @see edu.uci.ics.jung.graph.predicates.VertexPredicate#evaluateVertex(edu.uci.ics.jung.graph.ArchetypeVertex)
30      */
31     public boolean evaluateVertex(ArchetypeVertex v)
32     {
330        return v.containsUserDatumKey(key);
34     }
35 }

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.