# Coverage details for edu.uci.ics.jung.utils.UserDataUtils

Line | Hits | Source
--- | --- | ---
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.utils;`
11 |  | ``
12 |  | `import java.util.Set;`
13 |  | `import java.util.Iterator;`
14 |  | ``
15 |  | `/**`
16 |  | `* @author Scott White`
17 |  | `*/`
18 | 0 | `public class UserDataUtils {`
19 |  | ``
20 |  | `public static void cleanup(Set userDataContainers, Object key) {`
21 | 34 | `for (Iterator udcIt=userDataContainers.iterator(); udcIt.hasNext();) {`
22 | 240 | `((UserDataContainer) udcIt.next()).removeUserDatum(key);`
23 |  | `}`
24 | 34 | `}`
25 |  | ``
26 |  | `public static void cleanup(Set userDataContainers, Object key1, Object key2) {`
27 | 0 | `for (Iterator udcIt=userDataContainers.iterator(); udcIt.hasNext();) {`
28 | 0 | `UserDataContainer udc = (UserDataContainer) udcIt.next();`
29 | 0 | `udc.removeUserDatum(key1);`
30 | 0 | `udc.removeUserDatum(key2);`
31 |  | `}`
32 | 0 | `}`
33 |  | ``
34 |  | `public static void cleanup(Set userDataContainers, Object key1, Object key2, Object key3) {`
35 | 0 | `for (Iterator udcIt=userDataContainers.iterator(); udcIt.hasNext();) {`
36 | 0 | `UserDataContainer udc = (UserDataContainer) udcIt.next();`
37 | 0 | `udc.removeUserDatum(key1);`
38 | 0 | `udc.removeUserDatum(key2);`
39 | 0 | `udc.removeUserDatum(key3);`
40 |  | `}`
41 | 0 | `}`
42 |  | `}`

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.