BlackBerry Dynamics entitlement version. More...
Inherits Comparable< GDVersion >.
Objects of this class are used to represent BlackBerry Dynamics entitlement versions.
BlackBerry Dynamics entitlement versions are sequences of numbers. The first number is the major version number and is the most significant. Numbers later in the sequence are of decreasing significance. By convention, there are four numbers in an entitlement version.
In the BlackBerry Dynamics management console, and in other administrative user interfaces, entitlement versions are represented by "dotted string" values, in which the numbers are separated by full stops (periods).
Objects of this class are used in the GDAndroid.getEntitlementVersions results list.
The code snippet above illustrates the programming interface.
Public Member Functions | |
GDVersion (String version) | |
Constructs a GDVersion with constituent version numbers read from a dotted string representation. | |
GDVersion (List< Integer > version) | |
Constructs a GDVersion object with constituent version numbers initialized from a List of Integer values. | |
int | numberOfVersionParts () |
Count of how many constituent numbers are in the version. More... | |
int | versionPartAtPosition (int position) |
Get one constituent version number. More... | |
boolean | isEqualToVersion (GDVersion version) |
Check for equality with another version. More... | |
boolean | isGreaterThanVersion (GDVersion version) |
Check whether this version is more than another version. More... | |
boolean | isLessThanVersion (GDVersion version) |
Check whether this version is less than another version. More... | |
String | toString () |
Dotted string representation. More... | |
int | compareTo (GDVersion other) |
Compare this version with another version. More... | |
int numberOfVersionParts | ( | ) |
int
representation of the count of how many constituent numbers there are in the version. int versionPartAtPosition | ( | int | position | ) |
Call this method to get one of the constituent numbers in the version, specified by a numeric position. Position zero is the major version number, which is the most significant.
boolean isEqualToVersion | ( | GDVersion | version | ) |
true
if the two versions are the same. false
Otherwise. boolean isGreaterThanVersion | ( | GDVersion | version | ) |
true
if this version is more than the specified version. false
Otherwise. boolean isLessThanVersion | ( | GDVersion | version | ) |
true
if this version is less than the specified version. false
Otherwise. String toString | ( | ) |
int compareTo | ( | GDVersion | other | ) |
0
, 1
, or -1
, if this version is equal to, more than, or less than, the specified version respectively.