X-Git-Url: http://jaekl.net/gitweb/?p=frank.git;a=blobdiff_plain;f=report%2Fnet%2Fjaekl%2Fqd%2Futil%2FParseUtils.html;fp=report%2Fnet%2Fjaekl%2Fqd%2Futil%2FParseUtils.html;h=0000000000000000000000000000000000000000;hp=557169ed9cfe06cd9abe12c0dab7324ec66affda;hb=c35af9e511e8390a66ca76331c3af43d0f0f7464;hpb=24f097b0fe78fa44f99b9f6f2e51a8e689d86a4a diff --git a/report/net/jaekl/qd/util/ParseUtils.html b/report/net/jaekl/qd/util/ParseUtils.html deleted file mode 100644 index 557169e..0000000 --- a/report/net/jaekl/qd/util/ParseUtils.html +++ /dev/null @@ -1,262 +0,0 @@ - - -tests coverage - - - - - - - - - -
-Frames -No Frames -
-

- - - - - - - - - - - - - - - -
 %method%block%branch%line
net.jaekl.qd.util.ParseUtils
67%(2/3)
91%(10/11)
100%(8/8)
91%(10/11)
-

-

- - - - - - - - - - - - - - - - - - - - - - - - - -
hit countmethod namemethod modifiersmethod signature
0<init>[public]void <init>()
44parseDouble[public, static]double parseDouble(java.lang.String)
17parseInt[public, static]int parseInt(java.lang.String)
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 1 
 package net.jaekl.qd.util;
 2 
 
 3 Block: 0/1 
 public class ParseUtils {
 4 
 	// Attempt to parse the string as a double.
 5 
 	// Treat errors as a zero value.
 6 
 	public static double parseDouble(String string) {
 7 Block: 1/1 
 		if ((null == string) || ("".equals(string))) {
 8 Block: 1/1 Branch: 2/2 
 			return 0.0;
 9 
 		}
 10 
 		try {
 11 Block: 1/1 Branch: 1/1 
 			return Double.parseDouble(string);
 12 
 		}
 13 Block: 1/1 
 		catch (NumberFormatException exc) {
 14 
 			return 0.0;
 15 
 		}
 16 
 	}
 17 
 	
 18 
 	public static int parseInt(String string) {
 19 Block: 1/1 
 		if ((null == string) || ("".equals(string))) {
 20 Block: 1/1 Branch: 2/2 
 			return 0;
 21 
 		}
 22 
 		try {
 23 Block: 1/1 Branch: 1/1 
 			return Integer.parseInt(string);
 24 
 		}
 25 Block: 1/1 
 		catch (NumberFormatException exc) {
 26 
 			return 0;
 27 
 		}
 28 
 		
 29 
 	}
 30 
 }
-

-

Report generated 11/12/14 11:31 PM
- -