File tree 1 file changed +9
-8
lines changed
io.sloeber.core/src/io/sloeber/core/tools
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 2
2
@ SuppressWarnings ("unused" )
3
3
public class Version {
4
4
/**
5
- * compares 2 strings as if they are version numbers if version1<version2
6
- * returns -1 if version1==version2(also if both are null) returns 0 else
7
- * return 1 This method caters for the null case
8
- *
9
- * @param version1
10
- * @param version2
11
- * @return
12
- */
5
+ * compares 2 strings as if they are version numbers
6
+ * if version1 < version2 returns -1
7
+ * if version1==version2 (also if both are null) returns 0
8
+ * else return 1 This method caters for the null case
9
+ *
10
+ * @param version1
11
+ * @param version2
12
+ * @return
13
+ **/
13
14
public static int compare (String version1 , String version2 ) {
14
15
if (version1 == null ) {
15
16
return version2 == null ? 0 : -1 ;
You can’t perform that action at this time.
0 commit comments