|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.versioning.AbstractVersion
com.kuka.common.versioning.InterfaceVersion
public final class InterfaceVersion
Represents an interface version.
Interface version has the following format "#.#.#" (regular expression: "[0-9]*\.[0-9]+(\.[0-9]*){0,1}").
The first (left) number represents a release version and compared with equals, second - a "main version" and should
be compared as " equals". That means - all versions which are different from the given are not compatible.
The third (right) number represents "subversion" and should be compared as "greater or equal". That means - all
versions with subversion greater or equal to the given are compatible.
| Field Summary |
|---|
| Fields inherited from class com.kuka.common.versioning.AbstractVersion |
|---|
versionSeperator |
| Method Summary | |
|---|---|
int |
getReleaseVersion()
Gets the release version of interface. |
int |
getSubversion()
Gets the subversion of the interface. |
int |
getVersion()
Gets the main version of the interface. |
boolean |
isCompatible(InterfaceVersion requiredVersion)
Checks if the interface version is compatible with the given version. |
static InterfaceVersion |
parse(String version)
Creates an instance of the class from the specified string. |
| Methods inherited from class com.kuka.common.versioning.AbstractVersion |
|---|
compareTo, equals, getField, getVersionLength, hashCode, parseVersionString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static InterfaceVersion parse(String version)
version - version string to parse.
public int getReleaseVersion()
public int getVersion()
public int getSubversion()
public boolean isCompatible(InterfaceVersion requiredVersion)
requiredVersion - The other version. May not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||