From 258e6d1368a96d10a44367d4e941bdd16d83674f Mon Sep 17 00:00:00 2001 From: Yan Li Date: Thu, 9 Apr 2015 11:51:31 +0800 Subject: [PATCH] Convert nullability to latest syntax --- EGOCache.h | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/EGOCache.h b/EGOCache.h index 51f18de..0899aaa 100755 --- a/EGOCache.h +++ b/EGOCache.h @@ -45,44 +45,44 @@ + (nonnull instancetype)globalCache; // Opitionally create a different EGOCache instance with it's own cache directory -- (nonnull instancetype)initWithCacheDirectory:(NSString __nonnull*)cacheDirectory; +- (nonnull instancetype)initWithCacheDirectory:(NSString * __nonnull)cacheDirectory; - (void)clearCache; -- (void)removeCacheForKey:(NSString __nonnull*)key; +- (void)removeCacheForKey:(NSString * __nonnull)key; -- (BOOL)hasCacheForKey:(NSString __nonnull*)key; +- (BOOL)hasCacheForKey:(NSString * __nonnull)key; -- (NSData* __nullable)dataForKey:(NSString __nonnull*)key; -- (void)setData:(NSData __nonnull*)data forKey:(NSString __nonnull*)key; -- (void)setData:(NSData __nonnull*)data forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (NSData * __nullable)dataForKey:(NSString * __nonnull)key; +- (void)setData:(NSData * __nonnull)data forKey:(NSString * __nonnull)key; +- (void)setData:(NSData * __nonnull)data forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; -- (NSString* __nullable)stringForKey:(NSString __nonnull*)key; -- (void)setString:(NSString __nonnull*)aString forKey:(NSString __nonnull*)key; -- (void)setString:(NSString __nonnull*)aString forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (NSString * __nullable)stringForKey:(NSString * __nonnull)key; +- (void)setString:(NSString * __nonnull)aString forKey:(NSString * __nonnull)key; +- (void)setString:(NSString * __nonnull)aString forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; -- (NSDate* __nullable)dateForKey:(NSString __nonnull*)key; -- (NSArray __nonnull*)allKeys; +- (NSDate * __nullable)dateForKey:(NSString * __nonnull)key; +- (NSArray * __nonnull)allKeys; #if TARGET_OS_IPHONE -- (UIImage* __nullable)imageForKey:(NSString __nonnull*)key; -- (void)setImage:(UIImage __nonnull*)anImage forKey:(NSString __nonnull*)key; -- (void)setImage:(UIImage __nonnull*)anImage forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (UIImage * __nullable)imageForKey:(NSString * __nonnull)key; +- (void)setImage:(UIImage * __nonnull)anImage forKey:(NSString * __nonnull)key; +- (void)setImage:(UIImage * __nonnull)anImage forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; #else -- (NSImage* __nullable)imageForKey:(NSString __nonnull*)key; -- (void)setImage:(NSImage __nonnull*)anImage forKey:(NSString __nonnull*)key; -- (void)setImage:(NSImage __nonnull*)anImage forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (NSImage* __nullable)imageForKey:(NSString * __nonnull)key; +- (void)setImage:(NSImage * __nonnull)anImage forKey:(NSString * __nonnull)key; +- (void)setImage:(NSImage * __nonnull)anImage forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; #endif -- (NSData* __nullable)plistForKey:(NSString __nonnull*)key; -- (void)setPlist:(nonnull id)plistObject forKey:(NSString __nonnull*)key; -- (void)setPlist:(nonnull id)plistObject forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (NSData * __nullable)plistForKey:(NSString * __nonnull)key; +- (void)setPlist:(nonnull id)plistObject forKey:(NSString * __nonnull)key; +- (void)setPlist:(nonnull id)plistObject forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; -- (void)copyFilePath:(NSString __nonnull*)filePath asKey:(NSString __nonnull*)key; -- (void)copyFilePath:(NSString __nonnull*)filePath asKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (void)copyFilePath:(NSString * __nonnull)filePath asKey:(NSString * __nonnull)key; +- (void)copyFilePath:(NSString * __nonnull)filePath asKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; -- (nullable id)objectForKey:(NSString __nonnull*)key; -- (void)setObject:(nonnull id)anObject forKey:(NSString __nonnull*)key; -- (void)setObject:(nonnull id)anObject forKey:(NSString __nonnull*)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; +- (nullable id)objectForKey:(NSString * __nonnull)key; +- (void)setObject:(nonnull id)anObject forKey:(NSString * __nonnull)key; +- (void)setObject:(nonnull id)anObject forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval; @property(nonatomic) NSTimeInterval defaultTimeoutInterval; // Default is 1 day @end \ No newline at end of file