A collection of values. More...
Instance Methods | |
| (void) | - addMany: |
| Adds some values. More... | |
| (void) | - addSuccess: |
| Invoked when an element is added to the collection. More... | |
| (void) | - addSuccessNoLock: |
| Invoked after an element is added to the collection. More... | |
| (bool) | - any |
| Determined whether the collection contains at least one value. More... | |
| (bool) | - anyWithPredicate: |
| Determined whether the collection contains at least one value that matches the specified predicate. More... | |
| (T) | - anyWithPredicateBlock |
| Determined whether the collection contains at least one value that matches the specified predicate. More... | |
| (bool) | - anyWithPredicateBlock: |
| Determined whether the collection contains at least one value that matches the specified predicate. More... | |
| (NSMutableArray *) | - arrayFromList: |
| Creates an array from a list. More... | |
| (bool) | - contains: |
| Determines whether the collection contains a value. More... | |
| (int) | - count |
| Gets the count. More... | |
| (TCollection) | - createCollection |
| Creates a collection. More... | |
| (T) | - first |
| Gets the first value. More... | |
| (T) | - firstOrDefault |
| Gets the first value. More... | |
| (T) | - firstOrDefaultWithPredicate: |
| Gets the first value that matches the specified predicate. More... | |
| (T) | - firstOrDefaultWithPredicateBlock |
| Gets the first value that matches the specified predicate. More... | |
| (T) | - firstOrDefaultWithPredicateBlock: |
| Gets the first value that matches the specified predicate. More... | |
| (T) | - firstWithPredicate: |
| Gets the first value that matches the specified predicate. More... | |
| (T) | - firstWithPredicateBlock |
| Gets the first value that matches the specified predicate. More... | |
| (T) | - firstWithPredicateBlock: |
| Gets the first value that matches the specified predicate. More... | |
| (void) | - forEachWithCallback: |
| Executes a callback function once per value. More... | |
| (T, int) | - forEachWithCallbackBlock |
| Executes a callback function once per value. More... | |
| (void) | - forEachWithCallbackBlock: |
| Executes a callback function once per value. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchCollection`2 class. More... | |
| (T) | - last |
| Gets the last value. More... | |
| (T) | - lastOrDefault |
| Gets the last value. More... | |
| (T) | - lastOrDefaultWithPredicate: |
| Gets the last value that matches the specified predicate. More... | |
| (T) | - lastOrDefaultWithPredicateBlock |
| Gets the last value that matches the specified predicate. More... | |
| (T) | - lastOrDefaultWithPredicateBlock: |
| Gets the last value that matches the specified predicate. More... | |
| (T) | - lastWithPredicate: |
| Gets the last value that matches the specified predicate. More... | |
| (T) | - lastWithPredicateBlock |
| Gets the last value that matches the specified predicate. More... | |
| (T) | - lastWithPredicateBlock: |
| Gets the last value that matches the specified predicate. More... | |
| (bool) | - remove: |
| Removes a value. More... | |
| (void) | - removeAll |
| Removes all values. More... | |
| (T) | - removeFirst |
| Removes the first value. More... | |
| (T) | - removeFirstWithCondition: |
| Removes the first value that matches a given condition. More... | |
| (T) | - removeFirstWithConditionBlock |
| Removes the first value that matches a given condition. More... | |
| (T) | - removeFirstWithConditionBlock: |
| Removes the first value that matches a given condition. More... | |
| (T) | - removeLast |
| Removes the last value. More... | |
| (T) | - removeLastWithCondition: |
| Removes the last value that matches a given condition. More... | |
| (T) | - removeLastWithConditionBlock |
| Removes the last value that matches a given condition. More... | |
| (T) | - removeLastWithConditionBlock: |
| Removes the last value that matches a given condition. More... | |
| (void) | - removeMany: |
| Removes some values. More... | |
| (void) | - removeSuccess: |
| Invoked when an element is removed from the collection. More... | |
| (void) | - removeSuccessNoLock: |
| Invoked after an element is removed from the collection. More... | |
| (void) | - replace: |
| Replaces the collection with a new set of values. More... | |
| (void) | - setValue: |
| Sets the value. More... | |
| (void) | - setValues: |
| Sets the values. More... | |
| (T) | - single |
| Gets the only value. More... | |
| (T) | - singleOrDefault |
| Gets the only value. More... | |
| (T) | - singleOrDefaultWithPredicate: |
| Gets the only value that matches the specified predicate. More... | |
| (T) | - singleOrDefaultWithPredicateBlock |
| Gets the only value that matches the specified predicate. More... | |
| (T) | - singleOrDefaultWithPredicateBlock: |
| Gets the only value that matches the specified predicate. More... | |
| (T) | - singleWithPredicate: |
| Gets the only value that matches the specified predicate. More... | |
| (T) | - singleWithPredicateBlock |
| Gets the only value that matches the specified predicate. More... | |
| (T) | - singleWithPredicateBlock: |
| Gets the only value that matches the specified predicate. More... | |
| (NSMutableArray *) | - toArray |
| Clones the values into a new array. More... | |
| (T) | - value |
| Gets the value. More... | |
| (T) | - valueAtOrDefaultWithIndex: |
| Gets the value at the specified index. More... | |
| (T) | - valueAtWithIndex: |
| Gets the value at the specified index. More... | |
| (NSMutableArray *) | - values |
| Gets the values. More... | |
| (TCollection) | - whereWithPredicate: |
| Creates a new collection with values that match the specified predicate. More... | |
| (T, int) | - whereWithPredicateBlock |
| Creates a new collection with values that match the specified predicate. More... | |
| (TCollection) | - whereWithPredicateBlock: |
| Creates a new collection with values that match the specified predicate. More... | |
Class Methods | |
| (FMLiveSwitchCollection *) | + collection |
| Initializes a new instance of the FMLiveSwitchCollection`2 class. More... | |
Protected Attributes | |
| __pad0__: NSObject- (bool) add:(T)value | |
A collection of values.
| - (void) addMany: | (NSMutableArray *) | values |
Adds some values.
| values | The values. |
| - (void) addSuccess: | (T) | value |
Invoked when an element is added to the collection.
| value | The value. |
| - (void) addSuccessNoLock: | (T) | value |
Invoked after an element is added to the collection.
| value | The value. |
| - (bool) any |
Determined whether the collection contains at least one value.
| - (bool) anyWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Determined whether the collection contains at least one value that matches the specified predicate.
| predicate | The predicate. |
| - T anyWithPredicateBlock |
Determined whether the collection contains at least one value that matches the specified predicate.
@inlineparam predicateBlock The predicate.
| - (bool) anyWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Determined whether the collection contains at least one value that matches the specified predicate.
| predicateBlock | The predicate. |
| - (NSMutableArray*) arrayFromList: | (NSMutableArray< T > *) | list |
Creates an array from a list.
| list | The list. |
| + (FMLiveSwitchCollection*) collection |
Initializes a new instance of the FMLiveSwitchCollection`2 class.
| - (bool) contains: | (T) | value |
Determines whether the collection contains a value.
| value | The value. |
| - (int) count |
Gets the count.
| - (TCollection) createCollection |
Creates a collection.
Implemented in FMLiveSwitchStreamCollection, FMLiveSwitchRemoteMediaCollection, FMLiveSwitchManagedConnectionCollection, FMLiveSwitchIceServerCollection, FMLiveSwitchDataChannelCollection, and FMLiveSwitchConnectionCollection.
| - T first |
Gets the first value.
Throws an exception if there are no values in the collection.
| - T firstOrDefault |
Gets the first value.
Returns a default value if there are no values in the collection.
| - T firstOrDefaultWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the first value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
| predicate | The predicate. |
| - T firstOrDefaultWithPredicateBlock |
Gets the first value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
@inlineparam predicateBlock The predicate.
| - T firstOrDefaultWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the first value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
| predicateBlock | The predicate. |
| - T firstWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the first value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
| predicate | The predicate. |
| - T firstWithPredicateBlock |
Gets the first value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
@inlineparam predicateBlock The predicate.
| - T firstWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the first value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
| predicateBlock | The predicate. |
| - (void) forEachWithCallback: | (FMLiveSwitchAction2< T, id > *) | callback |
Executes a callback function once per value.
| callback | The callback to execute. |
| - (T, int) forEachWithCallbackBlock |
Executes a callback function once per value.
@inlineparam callbackBlock The callback to execute.
| - (void) forEachWithCallbackBlock: | (void(^)(T, int)) | callbackBlock |
Executes a callback function once per value.
| callbackBlock | The callback to execute. |
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchCollection`2 class.
Implemented in FMLiveSwitchStreamCollection, FMLiveSwitchRemoteMediaCollection, FMLiveSwitchMediaCollection, FMLiveSwitchManagedConnectionCollection, FMLiveSwitchIceServerCollection, FMLiveSwitchDataChannelCollection, and FMLiveSwitchConnectionCollection.
| - T last |
Gets the last value.
Throws an exception if there are no values in the collection.
| - T lastOrDefault |
Gets the last value.
Returns a default value if there are no values in the collection.
| - T lastOrDefaultWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the last value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
| predicate | The predicate. |
| - T lastOrDefaultWithPredicateBlock |
Gets the last value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
@inlineparam predicateBlock The predicate.
| - T lastOrDefaultWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the last value that matches the specified predicate.
Returns a default value if there are no such values in the collection.
| predicateBlock | The predicate. |
| - T lastWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the last value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
| predicate | The predicate. |
| - T lastWithPredicateBlock |
Gets the last value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
@inlineparam predicateBlock The predicate.
| - T lastWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the last value that matches the specified predicate.
Throws an exception if there are no such values in the collection.
| predicateBlock | The predicate. |
| - (bool) remove: | (T) | value |
Removes a value.
| value | The value. |
| - (void) removeAll |
Removes all values.
| - T removeFirst |
Removes the first value.
| - T removeFirstWithCondition: | (FMLiveSwitchFunction1< T, id > *) | condition |
Removes the first value that matches a given condition.
| - T removeFirstWithConditionBlock |
Removes the first value that matches a given condition.
| - T removeFirstWithConditionBlock: | (bool(^)(T)) | conditionBlock |
Removes the first value that matches a given condition.
| - T removeLast |
Removes the last value.
| - T removeLastWithCondition: | (FMLiveSwitchFunction1< T, id > *) | condition |
Removes the last value that matches a given condition.
| - T removeLastWithConditionBlock |
Removes the last value that matches a given condition.
| - T removeLastWithConditionBlock: | (bool(^)(T)) | conditionBlock |
Removes the last value that matches a given condition.
| - (void) removeMany: | (NSMutableArray *) | values |
Removes some values.
| values | The values. |
| - (void) removeSuccess: | (T) | value |
Invoked when an element is removed from the collection.
| value | The value. |
| - (void) removeSuccessNoLock: | (T) | value |
Invoked after an element is removed from the collection.
| value | The value. |
| - (void) replace: | (NSMutableArray *) | values |
Replaces the collection with a new set of values.
| values | The values. |
| - (void) setValue: | (T) | value |
Sets the value.
| - (void) setValues: | (NSMutableArray *) | value |
Sets the values.
| - T single |
Gets the only value.
Throws an exception if there are no values or more than one value in the collection.
| - T singleOrDefault |
Gets the only value.
Returns a default value if there are no values or more than one value in the collection.
| - T singleOrDefaultWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the only value that matches the specified predicate.
Returns a default value if there are no values or more than one value in the collection.
| - T singleOrDefaultWithPredicateBlock |
Gets the only value that matches the specified predicate.
Returns a default value if there are no values or more than one value in the collection.
| - T singleOrDefaultWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the only value that matches the specified predicate.
Returns a default value if there are no values or more than one value in the collection.
| - T singleWithPredicate: | (FMLiveSwitchFunction1< T, id > *) | predicate |
Gets the only value that matches the specified predicate.
Throws an exception if there are no values or more than one value in the collection.
| - T singleWithPredicateBlock |
Gets the only value that matches the specified predicate.
Throws an exception if there are no values or more than one value in the collection.
| - T singleWithPredicateBlock: | (bool(^)(T)) | predicateBlock |
Gets the only value that matches the specified predicate.
Throws an exception if there are no values or more than one value in the collection.
| - (NSMutableArray*) toArray |
Clones the values into a new array.
| - T value |
Gets the value.
| - T valueAtOrDefaultWithIndex: | (int) | index |
Gets the value at the specified index.
Returns a default value if a value does not exist at that index.
| index | The index. |
| - T valueAtWithIndex: | (int) | index |
Gets the value at the specified index.
Throws an exception if a value does not exist at that index.
| index | The index. |
| - (NSMutableArray*) values |
Gets the values.
Creates a new collection with values that match the specified predicate.
| predicate | The predicate. |
| - (T, int) whereWithPredicateBlock |
Creates a new collection with values that match the specified predicate.
@inlineparam predicateBlock The predicate.
| - (TCollection) whereWithPredicateBlock: | (bool(^)(T, int)) | predicateBlock |
Creates a new collection with values that match the specified predicate.
| predicateBlock | The predicate. |
|
protected |