MCPcopy Create free account
hub / github.com/PCGen/pcgen / isPriorToCurrent

Method isPriorToCurrent

code/src/java/pcgen/core/utils/CoreUtility.java:455–458  ·  view source on GitHub ↗

Check if a version is earlier or equal to the current pcgen version. @param version PCGen version to be checked. @return True if the version is before or equal to the current pcgen version.

(String version)

Source from the content-addressed store, hash-verified

453 * version.
454 */
455 public static boolean isPriorToCurrent(String version)
456 {
457 return CoreUtility.compareVersions(version, PCGenPropBundle.getVersionNumber()) <= 0;
458 }
459
460 /**
461 * Convert a PCGen version to its numerical format.

Callers 2

testIsPriorToCurrentMethod · 0.95
readDataSetMethod · 0.95

Calls 2

compareVersionsMethod · 0.95
getVersionNumberMethod · 0.95

Tested by 1

testIsPriorToCurrentMethod · 0.76