|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.res.model.IlrVersion
public class IlrVersion
The IlrVersion
class represents the version number for a RuleApp or a
ruleset.
Constructor Summary | |
---|---|
IlrVersion(int major,
int minor)
Constructs an IlrVersion instance from a major and a minor
number. |
Method Summary | |
---|---|
int |
compareTo(IlrVersion o)
Compares the version number of this IlrVersion instance
to another object. |
boolean |
equals(Object obj)
Overrides java.lang.Object#equals(java.lang.Object) . |
int |
getMajor()
Retrieves the major number of this version instance. |
int |
getMinor()
Retrieves the minor number of this version instance. |
int |
hashCode()
Overrides java.lang.Object#hashCode() . |
static IlrVersion |
parseVersion(String version)
Retrieves an IlrVersion object that represents the version
specified by a string. |
String |
toString()
Overrides java.lang.Object#toString() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IlrVersion(int major, int minor)
IlrVersion
instance from a major and a minor
number.
major
- The major version number. This value must be greater than
0
.minor
- The minor version number. This value must be greater than
or equal to 0
.Method Detail |
---|
public static IlrVersion parseVersion(String version) throws IlrFormatException
IlrVersion
object that represents the version
specified by a string.
IlrFormatException
- if the string cannot be parsed as a version.version
- The String
to be parsed.
IlrVersion
object that represents the version
specified by a string.public int getMajor()
public int getMinor()
public int compareTo(IlrVersion o)
IlrVersion
instance
to another object.
compareTo
in interface Comparable<IlrVersion>
o
- The object with which to compare version numbers.Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
java.lang.Object#equals(java.lang.Object)
.
equals
in class Object
obj
- The object to test against this version instance.
true
if obj
is the same
as this version instance.Object.equals(java.lang.Object)
public int hashCode()
java.lang.Object#hashCode()
.
hashCode
in class Object
Object.hashCode()
public String toString()
java.lang.Object#toString()
.
toString
in class Object
String
representation of this object.Object.toString()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |