EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.probespec.framework] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
Registry.java | 0% (0/1) | 0% (0/4) | 0% (0/24) | 0% (0/8) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class Registry | 0% (0/1) | 0% (0/4) | 0% (0/24) | 0% (0/8) |
Registry (): void | 0% (0/1) | 0% (0/8) | 0% (0/3) | |
iterator (): Iterator | 0% (0/1) | 0% (0/4) | 0% (0/1) | |
register (Object): void | 0% (0/1) | 0% (0/6) | 0% (0/2) | |
unregister (Object): void | 0% (0/1) | 0% (0/6) | 0% (0/2) |
1 | package de.uka.ipd.sdq.probespec.framework; |
2 | |
3 | import java.util.ArrayList; |
4 | import java.util.Iterator; |
5 | import java.util.List; |
6 | |
7 | public class Registry<T> implements Iterable<T> { |
8 | |
9 | private List<T> registeredItems; |
10 | |
11 | public Registry() { |
12 | registeredItems = new ArrayList<T>(); |
13 | } |
14 | |
15 | public void register(T item) { |
16 | registeredItems.add(item); |
17 | } |
18 | |
19 | public void unregister(T item) { |
20 | registeredItems.remove(item); |
21 | } |
22 | |
23 | @Override |
24 | public Iterator<T> iterator() { |
25 | return registeredItems.iterator(); |
26 | } |
27 | |
28 | } |
[all classes][de.uka.ipd.sdq.probespec.framework] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |