public class VersionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FALLBACK_VERSION |
Constructor and Description |
---|
VersionUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
compareVersions(String version1,
String version2)
Similar to
StringUtils compareVersions, but supports the 'Development' version |
List<int[]> |
equalizeVersionComponents(int[]... versions) |
static String |
getJIPipeVersion()
The current version of JIPipe according to the Maven-proved information
|
static int[] |
getVersionComponents(String version) |
static String |
getVersionString(Class<?> klass)
Returns a version string for a class
|
public static final String FALLBACK_VERSION
public static String getVersionString(Class<?> klass)
klass
- the classpublic static String getJIPipeVersion()
public static int compareVersions(String version1, String version2)
StringUtils
compareVersions, but supports the 'Development' versionversion1
- the first versionversion2
- the second versionpublic static int[] getVersionComponents(String version)
public List<int[]> equalizeVersionComponents(int[]... versions)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.