public class LAVESDKV extends java.lang.Object implements java.lang.Comparable<LAVESDKV>
CURRENT
to get the version information of the current LAVESDK (meaning the LAVESDK that is in use). Use MINIMUM
to get the minimum version information of the current LAVESDK.checkCompatibility(AlgorithmPlugin)
to check whether a plugin is compatible with the current LAVESDK version or not.Modifier and Type | Field and Description |
---|---|
static LAVESDKV |
CURRENT
contains the version information of the current LAVESDK
|
static LAVESDKV |
MINIMUM
contains the minimum version information of the current LAVESDK
|
Constructor and Description |
---|
LAVESDKV(int major,
int minor)
Creates a new LAVESDK version.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkCompatibility(AlgorithmPlugin plugin)
|
static boolean |
checkCompatibility(LAVESDKV version)
|
int |
compareTo(LAVESDKV version)
Compares this version with the specified version and returns a negative integer, zero, or a positive integer
as this version is less than, equal to, or greater than the specified version.
|
java.lang.String |
toString()
Formats the version.
|
public static final LAVESDKV CURRENT
public static final LAVESDKV MINIMUM
public LAVESDKV(int major, int minor) throws java.lang.IllegalArgumentException
major
- the major number of the version (greater or equal 1
)minor
- the major number of the version (greater or equal 0
)java.lang.IllegalArgumentException
- < 1
< 0
public static boolean checkCompatibility(LAVESDKV version)
MINIMUM
and less or equal the maximum (CURRENT
) of the current version.version
- the version to be checkedtrue
if the specified version is compatible otherwise false
public static boolean checkCompatibility(AlgorithmPlugin plugin)
MINIMUM
) and less or equal the current version (CURRENT
) of the LAVESDK.plugin
- the plugin to be checkedtrue
if the specified plugin is compatible otherwise false
public int compareTo(LAVESDKV version)
compareTo
in interface java.lang.Comparable<LAVESDKV>
version
- the version to be comparedpublic java.lang.String toString()
toString
in class java.lang.Object
major.minor