All Packages Class Hierarchy This Package Previous Next Index
Class org.mitre.cvw.mcp.Version
java.lang.Object
|
+----org.mitre.cvw.mcp.Version
- public class Version
- extends Object
The MOO Client Protocol Message Version object.
A MOO Client Protocol versions consist of a major and minor number
which are separated by a period.
-
Version(int, int)
- Create a version from two integers, a major version number
and a minor version number.
-
Version(String)
- Create a version from a string.
-
geq(Version)
- Version ordering--greater than or equal to.
-
toString()
-
-
version(Version, Version, Version, Version)
- Return the highest version of the overlapping versions ranges,
null if none.
Version
public Version(int maj,
int min)
- Create a version from two integers, a major version number
and a minor version number.
Version
public Version(String versionStr)
- Create a version from a string.
The string should contain two integers separated by a period.
geq
public boolean geq(Version version)
- Version ordering--greater than or equal to.
version
public static Version version(Version server_min,
Version server_max,
Version client_min,
Version client_max)
- Return the highest version of the overlapping versions ranges,
null if none.
- Parameters:
- server_min - the minimal version supported by the server
- server_max - the maximal version supported by the server
- client_min - the minimal version supported by the client
- client_max - the maximal version supported by the client
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index