Compare the two PCGen versions. @param ver The first version @param compVer The second version @return the value 0 if the PCG versions are equal; a value less than 0 if the first version is less than the second version; and a value greater than 0 if the first v
(int[] ver, int[] compVer)
| 411 | * version. |
| 412 | */ |
| 413 | public static int compareVersions(int[] ver, int[] compVer) |
| 414 | { |
| 415 | if (ver[0] != compVer[0]) |
| 416 | { |
| 417 | return Integer.compare(ver[0], compVer[0]); |
| 418 | } |
| 419 | if (ver[1] != compVer[1]) |
| 420 | { |
| 421 | return Integer.compare(ver[1], compVer[1]); |
| 422 | } |
| 423 | return Integer.compare(ver[2], compVer[2]); |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * Compare the two PCGen versions. |