blackberry.com
BlackBerry Dynamics
Runtime library for macOS applications
from the application developer portal

GDVersion.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All rights reserved.
00003  *
00004  */
00005 
00006 #pragma once
00007 
00008 #import <Foundation/Foundation.h>
00009 
00010 #import "GDPortability.h"
00011 
00012 GD_NS_ASSUME_NONNULL_BEGIN
00013 
00080 @interface GDVersion : NSObject
00081 
00087 - (GD_NSNULLABLE GDVersion*)initWithString:(NSString*)versionString;
00088 
00094 - (GD_NSNULLABLE GDVersion*)initWithArray:(NSArray*)array;
00095 
00101 - (NSUInteger)numberOfVersionParts;
00102 
00111 - (NSUInteger)versionPartAt:(NSUInteger)position;
00112 
00118 - (NSComparisonResult)compare:(GDVersion*)anotherVersion;
00119 
00125 - (BOOL)isEqualToVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
00126 
00132 - (BOOL)isGreaterThanVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
00133 
00139 - (BOOL)isLessThanVersion:(GD_NSNULLABLE GDVersion*)anotherVersion;
00140 
00145 @property(nonatomic, readonly) NSString *stringValue;
00146 @end
00147 
00148 GD_NS_ASSUME_NONNULL_END