BlackBerry Dynamics entitlement version. More...
#import <BlackBerryDynamics/GD/GDVersion.h>
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 getEntitlementVersionsFor: (GDiOS) results list.
The code snippet above illustrates the programming interface.
Instance Methods | |
(nullable instancetype) | - initWithString: |
Initialize from a dotted string representation. More... | |
(nullable instancetype) | - initWithArray: |
Initialize from an array of NSNumber objects. More... | |
(NSUInteger) | - numberOfVersionParts |
Count of how many constituent numbers are in the version. More... | |
(NSUInteger) | - versionPartAt: |
Get one constituent version number. More... | |
(NSComparisonResult) | - compare: |
Compare this version with another version. More... | |
(BOOL) | - isEqualToVersion: |
Check for equality with another version. More... | |
(BOOL) | - isGreaterThanVersion: |
Check whether this version is more than another version. More... | |
(BOOL) | - isLessThanVersion: |
Check whether this version is less than another version. More... | |
Properties | |
NSString * | stringValue |
Dotted string representation. More... | |
- (nullable instancetype) initWithString: | (NSString *) | versionString |
GDVersion
object with constituent version numbers read from a dotted string representation. - (nullable instancetype) initWithArray: | (NSArray *) | array |
GDVersion
object with constituent version numbers initialized from an array of NSNumber
objects. - (NSUInteger) numberOfVersionParts |
NSUInteger
representation of the count of how many constituent numbers there are in the version. - (NSUInteger) versionPartAt: | (NSUInteger) | position |
Call this function 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.
- (NSComparisonResult) compare: | (GDVersion *) | anotherVersion |
NSComparisonResult
representing the relative value of this version compared to the other version. - (BOOL) isEqualToVersion: | (nullable GDVersion *) | anotherVersion |
YES
if the two versions are the same. NO
Otherwise. - (BOOL) isGreaterThanVersion: | (nullable GDVersion *) | anotherVersion |
YES
if this version is more than the specified version. NO
Otherwise. - (BOOL) isLessThanVersion: | (nullable GDVersion *) | anotherVersion |
YES
if this version is less than the specified version. NO
Otherwise.
|
readnonatomicassign |