Package org.irods.irods4j.common
Class Versioning
java.lang.Object
org.irods.irods4j.common.Versioning
Provides utilities for version-related operations.
- Since:
- 0.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareVersions(String v1, String v2) Compares iRODS version strings.
-
Constructor Details
-
Versioning
public Versioning()
-
-
Method Details
-
compareVersions
Compares iRODS version strings.Version strings MUST follow the pattern MAJOR.MINOR.PATCH.
- Parameters:
v1- The first version string to compare.v2- The second version string to compare.- Returns:
- The value
0ifv1 == v2; a value less than0ifv1 < v2; and a value greater than0ifv1 > v2. - Since:
- 0.2.0
-