FMLiveSwitchInternalConcurrentDictionary Class Reference

Instance Methods

(TValue- addOrUpdateWithKey:addValue:updateValueFactoryBlock:
 
(TKey, TValue- addOrUpdateWithKeyAndAddValueAndUpdateValueFactoryBlock
 
(void) - clear
 
(bool) - containsKey:
 
(int) - count
 
(TValue- getOrAddWithKey:valueFactory:
 
(TValue- getOrAddWithKey:valueFactoryBlock:
 
(TKey) - getOrAddWithKeyAndValueFactoryBlock
 
(instancetype) - initWithHashCallback:
 
(instancetype) - initWithHashCallbackBlock:
 
(bool) - isEmpty
 
(NSMutableArray< TKey > *) - keys
 
(bool) - tryAddWithKey:value:
 
(bool) - tryGetValueWithKey:value:
 
(bool) - tryRemoveWithKey:value:
 
(bool) - tryUpdateWithKey:newValue:comparisonValue:
 
(NSMutableArray< TValue > *) - values
 

Class Methods

(FMLiveSwitchInternalConcurrentDictionary *) + internalConcurrentDictionaryWithHashCallback:
 
(FMLiveSwitchInternalConcurrentDictionary *) + internalConcurrentDictionaryWithHashCallbackBlock:
 

Protected Attributes

 __pad0__: NSObject- (TValue) addOrUpdateWithKey:(TKey)key addValue:(TValue)addValue updateValueFactory:(FMLiveSwitchFunction2<TKey
 
 TValue
 
TValueupdateValueFactory
 

Method Documentation

◆ addOrUpdateWithKey:addValue:updateValueFactoryBlock:

- (TValue) addOrUpdateWithKey: (TKey)  key
addValue: (TValue addValue
updateValueFactoryBlock: (TValue(^)(TKey, TValue))  updateValueFactoryBlock 

◆ addOrUpdateWithKeyAndAddValueAndUpdateValueFactoryBlock

- (TKey, TValue) addOrUpdateWithKeyAndAddValueAndUpdateValueFactoryBlock

◆ clear

- (void) clear

◆ containsKey:

- (bool) containsKey: (TKey)  key

◆ count

- (int) count

◆ getOrAddWithKey:valueFactory:

- (TValue) getOrAddWithKey: (TKey)  key
valueFactory: (FMLiveSwitchFunction1< TKey, TValue > *)  valueFactory 

◆ getOrAddWithKey:valueFactoryBlock:

- (TValue) getOrAddWithKey: (TKey)  key
valueFactoryBlock: (TValue(^)(TKey))  valueFactoryBlock 

◆ getOrAddWithKeyAndValueFactoryBlock

- (TKey) getOrAddWithKeyAndValueFactoryBlock

◆ initWithHashCallback:

- (instancetype) initWithHashCallback: (FMLiveSwitchFunction1< TKey, NSString * > *)  hashCallback

◆ initWithHashCallbackBlock:

- (instancetype) initWithHashCallbackBlock: (NSString *(^)(TKey))  hashCallbackBlock

◆ internalConcurrentDictionaryWithHashCallback:

+ (FMLiveSwitchInternalConcurrentDictionary*) internalConcurrentDictionaryWithHashCallback: (FMLiveSwitchFunction1< TKey, NSString * > *)  hashCallback

◆ internalConcurrentDictionaryWithHashCallbackBlock:

+ (FMLiveSwitchInternalConcurrentDictionary*) internalConcurrentDictionaryWithHashCallbackBlock: (NSString *(^)(TKey))  hashCallbackBlock

◆ isEmpty

- (bool) isEmpty

◆ keys

- (NSMutableArray<TKey>*) keys

◆ tryAddWithKey:value:

- (bool) tryAddWithKey: (TKey)  key
value: (TValue value 

◆ tryGetValueWithKey:value:

- (bool) tryGetValueWithKey: (TKey)  key
value: (TValue *)  value 

◆ tryRemoveWithKey:value:

- (bool) tryRemoveWithKey: (TKey)  key
value: (TValue *)  value 

◆ tryUpdateWithKey:newValue:comparisonValue:

- (bool) tryUpdateWithKey: (TKey)  key
newValue: (TValue newValue
comparisonValue: (TValue comparisonValue 

◆ values

- (NSMutableArray<TValue>*) values

Member Data Documentation

◆ __pad0__

- __pad0__
protected

◆ TValue

- TValue
protected

◆ updateValueFactory

- (TValue*) updateValueFactory
protected