public class VersionComparator extends Object implements Comparator<String>, Serializable
| Constructor and Description |
|---|
VersionComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String v1,
String v2) |
static int |
compareVersions(String v1,
String v2) |
static boolean |
isCompatible(String min,
String max)
Checks to see if the version of GATE falls between the two specified
versions (this is an inclusive check).
|
static boolean |
isGATENewEnough(String version)
Returns true if the specified version is the same or newer than the version
of GATE being used.
|
static boolean |
isGATEOldEnough(String version)
Returns true if the specified version is the same or older than the version
of GATE being used.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(String v1, String v2)
compare in interface Comparator<String>public static boolean isGATENewEnough(String version)
version - the version number to checkpublic static boolean isGATEOldEnough(String version)
version - the version number to checkpublic static boolean isCompatible(String min, String max)
min - the minimum compatible GATE versionmax - the maximum compatible GATE versionCopyright © 2024 GATE. All rights reserved.