Package | Description |
---|---|
com.mgnt.utils | |
com.mgnt.utils.textutils |
Modifier and Type | Method and Description |
---|---|
static int |
TextUtils.compareVersions(java.lang.String ver1,
java.lang.String ver2)
This method compares 2 Strings as versions
|
static int |
TextUtils.compareVersions(java.lang.String ver1,
Version ver2)
This method compares a String that represents a version to a Version
|
static int |
TextUtils.compareVersions(Version ver1,
java.lang.String ver2)
This method compares a Version to a String that represents a version
|
Modifier and Type | Method and Description |
---|---|
boolean |
VersionRange.isAboveRange(java.lang.String ver)
Converts the String into Version and than checks if the ver is above the range
|
boolean |
VersionRange.isBelowRange(java.lang.String ver)
Converts the String into Version and than checks if the ver is below the range
|
boolean |
VersionRange.isInRange(java.lang.String ver)
This method first converts String parameter into Version and checks if the version falls within range.
|
Constructor and Description |
---|
Version(java.lang.String verStr) |
VersionRange(java.lang.String versionRange)
This constructor assumes that the string is a version range in format "[Version String] - [Version String]" It splits the string by the "-"
delimiter and attempts to create the range the same way as constructor
VersionRange.VersionRange(String, String) would. |
VersionRange(java.lang.String fromVersion,
java.lang.String toVersion)
This constructor constructs the Range with its lower and upper limits.
|
VersionRange(java.lang.String fromVersion,
Version toVersion)
This constructor constructs the Range with its lower and upper limits.
|
VersionRange(Version fromVersion,
java.lang.String toVersion)
This constructor constructs the Range with its lower and upper limits.
|