• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 8.0.0.81
GDVersion.h
Go to the documentation of this file.
1 /*
2  * (c) 2017 BlackBerry Limited. All rights reserved.
3  *
4  */
5 
6 #pragma once
7 
8 #import <Foundation/Foundation.h>
9 
10 #import "GDPortability.h"
11 
13 
80 @interface GDVersion : NSObject
81 
87 - (GD_NSNULLABLE instancetype)initWithString:(NSString*)versionString;
88 
94 - (GD_NSNULLABLE instancetype)initWithArray:(NSArray*)array;
95 
101 - (NSUInteger)numberOfVersionParts;
102 
111 - (NSUInteger)versionPartAt:(NSUInteger)position;
112 
118 - (NSComparisonResult)compare:(GDVersion*)anotherVersion;
119 
125 - (BOOL)isEqualToVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
126 
132 - (BOOL)isGreaterThanVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
133 
139 - (BOOL)isLessThanVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
140 
145 @property(nonatomic, readonly) NSString *stringValue;
146 @end
147 
GD_NSNULLABLE
#define GD_NSNULLABLE
Definition: GDPortability.h:71
GD_NS_ASSUME_NONNULL_END
#define GD_NS_ASSUME_NONNULL_END
Definition: GDPortability.h:89
GDVersion::stringValue
NSString * stringValue
Dotted string representation.
Definition: GDVersion.h:145
GDVersion
BlackBerry Dynamics entitlement version.
Definition: GDVersion.h:80
-[GDVersion numberOfVersionParts]
NSUInteger numberOfVersionParts()
Count of how many constituent numbers are in the version.
GD_NS_ASSUME_NONNULL_BEGIN
#define GD_NS_ASSUME_NONNULL_BEGIN
Definition: GDPortability.h:88
GDPortability.h