FMLiveSwitchManagedConnectionCollection Class Reference

A collection of connections. More...

Instance Methods

(void) - addSuccess:
 Invoked when an element is added to the collection. More...
 
(NSMutableArray *) - arrayFromList:
 Creates an array from a list. More...
 
(FMLiveSwitchManagedConnectionCollection *) - createCollection
 Creates a collection. More...
 
(FMLiveSwitchManagedConnection *) - getById:
 Gets a connection by ID. More...
 
(FMLiveSwitchManagedConnection *) - getByRemoteId:
 Gets a connection by remote ID. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchCollection`2 class. More...
 
(void) - removeSuccess:
 Invoked when an element is removed from the collection. More...
 
(bool) - tryGetById:connection:
 Tries to get a connection by ID. More...
 
(bool) - tryGetByRemoteId:connection:
 Tries to get a connection by remote ID. More...
 
- Instance Methods inherited from FMLiveSwitchCollection
(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...
 
(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...
 
(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

(FMLiveSwitchManagedConnectionCollection *) + managedConnectionCollection
 
- Class Methods inherited from FMLiveSwitchCollection
(FMLiveSwitchCollection *) + collection
 Initializes a new instance of the FMLiveSwitchCollection`2 class. More...
 

Additional Inherited Members

- Protected Attributes inherited from FMLiveSwitchCollection
 __pad0__: NSObject- (bool) add:(T)value
 

Detailed Description

A collection of connections.

Method Documentation

◆ addSuccess:

- (void) addSuccess: (FMLiveSwitchManagedConnection *)  value

Invoked when an element is added to the collection.

Parameters
valueThe value.

◆ arrayFromList:

- (NSMutableArray*) arrayFromList: (NSMutableArray< FMLiveSwitchManagedConnection * > *)  list

Creates an array from a list.

Parameters
listThe list.

◆ createCollection

Creates a collection.

Implements FMLiveSwitchCollection.

◆ getById:

- (FMLiveSwitchManagedConnection*) getById: (NSString *)  idValue

Gets a connection by ID.

Parameters
idValueThe identifier.
Returns
The connection, or null if the connection does not exist.

◆ getByRemoteId:

- (FMLiveSwitchManagedConnection*) getByRemoteId: (NSString *)  idValue

Gets a connection by remote ID.

Parameters
idValueThe identifier.
Returns
The connection, or null if the connection does not exist.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchCollection`2 class.

Implements FMLiveSwitchCollection.

◆ managedConnectionCollection

+ (FMLiveSwitchManagedConnectionCollection*) managedConnectionCollection

◆ removeSuccess:

- (void) removeSuccess: (FMLiveSwitchManagedConnection *)  value

Invoked when an element is removed from the collection.

Parameters
valueThe value.

◆ tryGetById:connection:

- (bool) tryGetById: (NSString *)  idValue
connection: (FMLiveSwitchManagedConnection **)  connection 

Tries to get a connection by ID.

Parameters
idValueThe identifier.
connectionThe connection.
Returns
The connection, or null if the connection does not exist.

◆ tryGetByRemoteId:connection:

- (bool) tryGetByRemoteId: (NSString *)  idValue
connection: (FMLiveSwitchManagedConnection **)  connection 

Tries to get a connection by remote ID.

Parameters
idValueThe identifier.
connectionThe connection.
Returns
The connection, or null if the connection does not exist.