# Coverage details for edu.uci.ics.jung.graph.decorators.ConstantEdgeValue

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 |  | `/*`
11 |  | `* Created on Jul 7, 2004`
12 |  | `*`
13 |  | `*/`
14 |  | `package edu.uci.ics.jung.graph.decorators;`
15 |  | ``
16 |  | `import edu.uci.ics.jung.graph.ArchetypeEdge;`
17 |  | ``
18 |  | `/**`
19 |  | `* Returns a constructor-specified constant value for each edge.`
20 |  | `*`
21 |  | `* @author Joshua O'Madadhain`
22 |  | `*/`
23 |  | `public class ConstantEdgeValue implements NumberEdgeValue`
24 |  | `{`
25 |  | `protected Number value;`
26 |  | ``
27 |  | `public ConstantEdgeValue(double value)`
28 | 8 | `{`
29 | 8 | `this.value = new Double(value);`
30 | 8 | `}`
31 |  | ``
32 |  | `public ConstantEdgeValue(Number value)`
33 | 1 | `{`
34 | 1 | `this.value = value;`
35 | 1 | `}`
36 |  | ``
37 |  | `/**`
38 |  | `* @see edu.uci.ics.jung.graph.decorators.NumberEdgeValue#getNumber(edu.uci.ics.jung.graph.ArchetypeEdge)`
39 |  | `*/`
40 |  | `public Number getNumber(ArchetypeEdge arg0)`
41 |  | `{`
42 | 352 | `return value;`
43 |  | `}`
44 |  | ``
45 |  | `/**`
46 |  | `* @see edu.uci.ics.jung.graph.decorators.NumberEdgeValue#setNumber(edu.uci.ics.jung.graph.ArchetypeEdge, java.lang.Number)`
47 |  | `*/`
48 |  | `public void setNumber(ArchetypeEdge arg0, Number arg1)`
49 |  | `{`
50 | 0 | `throw new UnsupportedOperationException();`
51 |  | `}`
52 |  | ``
53 |  | `}`

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.