compareMajor()

Compares major versions or compares the major version of an version object with an integer.

Syntax

int compareMajor(CxVersion & other);
 int compareMajor(int major);
 

Parameters

other [in]
Is a version object.
major [in]
Is an integer that represents the major version number.

Return values

An integer that specifies the difference between the major versions.

Notes

You can use the compareMajor() method to compare the major versions of business objects or business object definitions.

See also

See also the descriptions of the compareMinor(), comparePoint(), and compareTo() methods.

Copyright IBM Corp. 1997, 2004