Synchronized Hash for inserts/removes. More...
Instance Methods | |
(bool) | - containsKey: |
Return a value indicating whether ther Hash contains a value for a given key. More... | |
(long long) | - count |
Gets the count of items in this hash. More... | |
(NSMutableArray *) | - getArrayWithCount: |
Gets an array of a given type of a given length. More... | |
(instancetype) | - init |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More... | |
(instancetype) | - initWithLockObject: |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More... | |
(void) | - insertWithKey:value: |
Synchronized insert into collection. More... | |
(void) | - removeWithKey: |
Synchronized remove into collection. More... | |
(bool) | - tryGetValueWithKey:value: |
Tries to get a value for a given key. More... | |
(NSMutableArray *) | - values |
Gets the values in the collection not subject to synchronization and Concurrent Modification/Access issues. More... | |
Class Methods | |
(FMLiveSwitchFrequentReadSynchronizedHash *) | + frequentReadSynchronizedHash |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More... | |
(FMLiveSwitchFrequentReadSynchronizedHash *) | + frequentReadSynchronizedHashWithLockObject: |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1. More... | |
Protected Attributes | |
__pad0__: NSObject- (void) clear | |
Synchronized Hash for inserts/removes.
Unsynchronized for reads. Optimized for frequent reads relative to writes.
- (bool) containsKey: | (TKey) | key |
Return a value indicating whether ther Hash contains a value for a given key.
key | The key |
- (long long) count |
Gets the count of items in this hash.
+ (FMLiveSwitchFrequentReadSynchronizedHash*) frequentReadSynchronizedHash |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.
+ (FMLiveSwitchFrequentReadSynchronizedHash*) frequentReadSynchronizedHashWithLockObject: | (id) | lockObject |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.
lockObject | Synchronization object. |
- (NSMutableArray*) getArrayWithCount: | (int) | count |
Gets an array of a given type of a given length.
count |
Implemented in FMLiveSwitchIceCandidatePairSynchronizedHash.
- (instancetype) init |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.
- (instancetype) initWithLockObject: | (id) | lockObject |
Creates an instance of a FMLiveSwitchFrequentReadSynchronizedList`1.
lockObject | Synchronization object. |
- (void) insertWithKey: | (TKey) | key | |
value: | (TValue) | value | |
Synchronized insert into collection.
value | Value |
key | Key |
- (void) removeWithKey: | (TKey) | key |
Synchronized remove into collection.
key | Key |
- (bool) tryGetValueWithKey: | (TKey) | key | |
value: | (TValue *) | value | |
Tries to get a value for a given key.
key | The key |
value | The value |
- (NSMutableArray*) values |
Gets the values in the collection not subject to synchronization and Concurrent Modification/Access issues.
May be missing newly added or removed values.
|
protected |