Produced by Araxis Merge on 6/20/2018 10:24:20 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers | BooleanHelper.java | Fri Mar 30 15:47:12 2018 UTC |
2 | CCRS.zip\CCRS\Reports-Sprint_5.zip\Reports-Sprint_5-aa03f94869cda45ee08ca75641e61a7376f2c2a5\CCRSBaseHelper\src\main\java\gov\va\ccrs\helpers | BooleanHelper.java | Fri Jun 15 13:11:17 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 204 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | package go v.va.ccrs. helpers; | |
2 | ||
3 | /** | |
4 | * | |
5 | * Helper to handle dates conv ersions fr om String to Date an d vice ver sa (with f ormat) | |
6 | * | |
7 | * @author PII | |
8 | * @versio n 1 | |
9 | * @since 12/15/2017 | |
10 | * | |
11 | */ | |
12 | public cla ss Boolean Helper | |
13 | { | |
14 | /** | |
15 | * | |
16 | * Con verts a St ring into a Boolean | |
17 | * ret urns false if conver sion can't be perfor med | |
18 | * | |
19 | * @pa ram value | |
20 | * @re turn | |
21 | */ | |
22 | public static bo olean toBo olean(Stri ng value) | |
23 | { | |
24 | bo olean bool = false; | |
25 | ||
26 | tr y | |
27 | { | |
28 | bool = B oolean.par seBoolean( value); | |
29 | } | |
30 | ca tch(Except ion ex) | |
31 | { | |
32 | bool = f alse; | |
33 | } | |
34 | ||
35 | re turn(bool) ; | |
36 | } | |
37 | ||
38 | /** | |
39 | * | |
40 | * Con verts an I nteger int o a Boolea n | |
41 | * ret urns false if conver sion can't be perfor med | |
42 | * | |
43 | * @pa ram value | |
44 | * @re turn | |
45 | */ | |
46 | public static bo olean toBo olean(int value) | |
47 | { | |
48 | bo olean bool = false; | |
49 | ||
50 | if (value == 1) | |
51 | { | |
52 | bool = t rue; | |
53 | } | |
54 | ||
55 | re turn(bool) ; | |
56 | } | |
57 | ||
58 | /** | |
59 | * | |
60 | * Con verts an I nteger int o a Boolea n | |
61 | * ret urns false if conver sion can't be perfor med | |
62 | * | |
63 | * @pa ram value | |
64 | * @re turn | |
65 | */ | |
66 | public static bo olean toBo olean(Inte ger value) | |
67 | { | |
68 | bo olean bool = false; | |
69 | ||
70 | if (value == 1) | |
71 | { | |
72 | bool = t rue; | |
73 | } | |
74 | ||
75 | re turn(bool) ; | |
76 | } | |
77 | ||
78 | /** | |
79 | * | |
80 | * Con verts an B oolean int o a String | |
81 | * ret urns false if conver sion can't be perfor med | |
82 | * | |
83 | * @pa ram value | |
84 | * @re turn | |
85 | */ | |
86 | public static St ring toStr ing(boolea n value) | |
87 | { | |
88 | re turn(Boole an.toStrin g(value)); | |
89 | } | |
90 | ||
91 | /** | |
92 | * | |
93 | * Con verts an B oolean int o a String | |
94 | * ret urns false if conver sion can't be perfor med | |
95 | * | |
96 | * @pa ram value | |
97 | * @re turn | |
98 | */ | |
99 | public static St ring toStr ing(Boolea n value) | |
100 | { | |
101 | re turn((valu e != null) ?Boolean.t oString(va lue):null) ; | |
102 | } | |
103 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.