public final class VersionUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_VERSION_STRING |
| Modifier and Type | Method and Description |
|---|---|
static int |
versionCompare(java.lang.String fromVersion,
java.lang.String toVersion)
Compare fromVersion and toVersion.
|
static void |
versionMatch(java.lang.String version)
Match version by the format.
|
public static final java.lang.String DEFAULT_VERSION_STRING
public static void versionMatch(java.lang.String version)
version - the version Stringjava.lang.IllegalArgumentException - this is an illegal argument exceptionpublic static int versionCompare(java.lang.String fromVersion,
java.lang.String toVersion)
fromVersion - the initial versiontoVersion - the end of the version