Abstract collections class.
More...
#import <SCCollection.h>
Abstract collections class.
- SDK
- macOS 10.6+, iOS 7.0+
- Since
- version 1.1.3
Contains the declaration of all collection mandatory methods.@ Class instances can thrown the following exceptions:
- Todo:
Methods such setByAdddingObject: and so on
Change parameters type from id to id<SCCollection>
Adds into the receiving collection the objects from the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
Adds into the receiving collection the specified existing object.
- Parameters
-
object | - the added existing object |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) addObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Adds into the receiving collection the objects from the specified nil terminated list.
- Parameters
-
object | - first added object |
... | - other added objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
Returns an array with the all objects from the receiving collection.
- Returns
- Array with objects
Reimplemented from <SCCollection>.
Reimplemented in SCArray.
Returns the bidirectional list with the all objects from the receiving collection.
- Returns
- A bidirectional list with objects
Reimplemented from <SCCollection>.
- (BOOL) containsAnyObject: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Returns a boolean value that indicates whether the receiving collection contains at least one object from the specified nil terminated list.
- Parameters
-
object | - first desired object |
... | - other desired objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- YES if the receiving collection contains at least one object from the list, otherwise NO
Reimplemented from <SCCollection>.
- (BOOL) containsAnyObjectFromCollection: |
|
(id<SCCollection>) |
collection |
|
Returns a boolean value that indicates whether the receiving collection contains at least one object from the specified collection of any supported type.
- Parameters
-
collection | - collection with the desired objects |
- Returns
- YES if the receiving collection contains at least one object from the specified collection, otherwise NO
Reimplemented from <SCCollection>.
Returns a boolean value that indicates whether the receiving collection contains all objects from the specified collection of any supported type.
- Parameters
-
collection | - collection with desired objects |
- Returns
- YES if all desired objects are present in the receiving collection, otherwise NO
Reimplemented from <SCCollection>.
Returns a boolean value that indicates whether an equivalent of a given object is present in the receiving collection.
- Parameters
-
object | - the desired object |
- Returns
- YES if a given object is present in the receiving collection, otherwise NO
Reimplemented from <SCCollection>.
- (BOOL) containsObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Returns a boolean value that indicates whether the receiving collection contains all objects from the specified nil terminated list.
- Parameters
-
object | - first desired object |
... | - other desired objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- YES if all objects are present in the receiving collection, otherwise NO
Reimplemented from <SCCollection>.
Returns the dictionary with the all objects from the receiving collection.
- Returns
- A dictionary with objects
Reimplemented from <SCCollection>.
Reimplemented in SCDictionary.
Tells the instance delegate object for each object in the receiving collection.
Tells the specified delegate object for each object in the receiving collection.
- Parameters
-
delegate | - delegate object |
- (NSArray *) foundationArray |
|
|
|
Returns the class NSArray instance with the all objects from the receiving collection.
- Returns
- A class NSArray instance with objects
Reimplemented from <SCCollection>.
- (NSDictionary *) foundationDictionary |
|
|
|
Returns the class NSDictionary instance with the all objects from the receiving collection.
- Returns
- A class NSDictionary instance with objects
Reimplemented from <SCCollection>.
- (NSOrderedSet *) foundationOrderedSet |
|
|
|
Returns the class NSOrderedSet instance with the all objects from the receiving collection.
- Returns
- A class NSOrderedSet instance with objects
- SDK
- macOS 10.7+, iOS 7.0+
Reimplemented from <SCCollection>.
- (NSSet *) foundationSet |
|
|
|
Returns the class NSSet instance with the all objects from the receiving collection.
- Returns
- A class NSSet instance with objects
Reimplemented from <SCCollection>.
- (instancetype) initWithCollection: |
|
(id<SCCollection>) |
collection |
|
Returns a boolean value that indicates whether the receiving instance is an array of any supported type.
- Returns
- YES if the receiving instance is an array, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isArray: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any array class.
- Parameters
-
- Returns
- YES if the specified object is an instance of an array class, otherwise NO
+ (BOOL) isArrayClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any supported array class.
- Parameters
-
- Returns
- YES if the specified string is a name of an array class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a collection of any supported type.
- Returns
- YES if the receiving instance is a collection, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isCollection: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any collection class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a collection class, otherwise NO
+ (BOOL) isCollectionClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any supported collection class.
- Parameters
-
- Returns
- YES if the specified string is a name of a collection class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a dictionary of any supported type.
- Returns
- YES if the receiving instance is a dictionary, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isDictionary: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any dictionary class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a dictionary class, otherwise NO
+ (BOOL) isDictionaryClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any dictionary class.
- Parameters
-
- Returns
- YES if the specified string is a name of a dictionary class, otherwise NO
- (BOOL) isEqual: |
|
(id) |
object |
|
Returns a boolean value that indicates whether the receiving collection is equals to the specified object.
- Parameters
-
object | - the object with which to compare the receiving collection |
- Returns
- YES if the object is equals to the receiving collection, otherwise NO
Reimplemented from SCObject.
Returns a boolean value that indicates whether the content and settings of the receiving collection are equal to the content and settings of another given collection.
- Parameters
-
collection | - the collection with which to compare the receiving collection |
- Returns
- YES if the content and settings of other collection are equal to the content and setting of the receiving collection, otherwise NO
- (BOOL) isEqualToContentsOfCollection: |
|
(id<SCCollection>) |
collection |
|
Returns a boolean value that indicates whether the content of the receiving collection is equals to the content of another given collection.
- Parameters
-
collection | - the collection with which to compare the receiving collection |
- Returns
- YES if the content of other collection is equals to the content of the receiving collection, otherwise NO
- (BOOL) isFoundationArray |
|
|
|
Returns a boolean value that indicates whether the reciving instance is a standard array.
- Returns
- YES if the receiving instance is a standard array, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isFoundationArray: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any standard array class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a standard array class, otherwise NO
+ (BOOL) isFoundationArrayClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any standard array class.
- Parameters
-
- Returns
- YES if the specified string is a name of a standard array class, otherwise NO
- (BOOL) isFoundationCollection |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a standard collection.
- Returns
- YES if the receiving instance is a library collection, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isFoundationCollection: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any standard collection class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a standard collection class, otherwise NO
+ (BOOL) isFoundationCollectionClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any standard collection class.
- Parameters
-
- Returns
- YES if the specified string is a name of a standard collection class, otherwise NO
- (BOOL) isFoundationDictionary |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a standard dictionary.
- Returns
- YES if the receiving instance is a standard dictionary, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isFoundationDictionary: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any standard dictionary class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a standard dictionary class, otherwise NO
+ (BOOL) isFoundationDictionaryClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library dictionary class.
- Parameters
-
- Returns
- YES if the specified string is a name of a standard dictionary class, otherwise NO
- (BOOL) isFoundationOrderedSet |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a standard ordered set.
- Returns
- YES if the receiving instance is a standard ordered set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isFoundationOrderedSet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any standard ordered set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a standard ordered set class, otherwise NO
+ (BOOL) isFoundationOrderedSetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any standard ordered set class.
- Parameters
-
- Returns
- YES if the specified string is a name of a standard ordered set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a standard set.
- Returns
- YES if the receiving instance is a standard set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isFoundationSet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any standard set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a standard set class, otherwise NO
+ (BOOL) isFoundationSetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any standard set class.
- Parameters
-
- Returns
- YES if the specified string is a name of a standard set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a library array.
- Returns
- YES if the receiving instance is a library array, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isLibraryArray: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any library array class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a library array class, otherwise NO
+ (BOOL) isLibraryArrayClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library array class.
- Parameters
-
- Returns
- YES if the specified string is a name of a library array class, otherwise NO
- (BOOL) isLibraryCollection |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a library collection.
- Returns
- YES if the receiving instance is a library collection, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isLibraryCollection: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any librray collection class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a library collection class, otherwise NO
+ (BOOL) isLibraryCollectionClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library collection class.
- Parameters
-
- Returns
- YES if the specified string is a name of a library collection class, otherwise NO
- (BOOL) isLibraryDictionary |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a library dictionary.
- Returns
- YES if the receiving instance is a library dictionary, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isLibraryDictionary: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any library dictionary class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a library dictionary class, otherwise NO
+ (BOOL) isLibraryDictionaryClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library dictionary class.
- Parameters
-
- Returns
- YES if the specified string is a name of a library dictionary class, otherwise NO
- (BOOL) isLibraryOrderedSet |
|
|
|
Returns a boolean value that indicates whether the receiving instance is a library ordered set.
- Returns
- YES if the receiving instance is a library ordered set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isLibraryOrderedSet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any library ordered set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a library ordered set class, otherwise NO
+ (BOOL) isLibraryOrderedSetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library ordered set class.
- Parameters
-
- Returns
- YES if the specified string is a name of a library ordered set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a library set.
- Returns
- YES if the receiving instance is a library set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isLibrarySet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any library set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a library set class, otherwise NO
+ (BOOL) isLibrarySetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any library set class.
- Parameters
-
- Returns
- YES if the specified string is a name of a library set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a list of any supported type.
- Returns
- YES if the receiving instance is a list, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isList: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any list class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a list class, otherwise NO
+ (BOOL) isListClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any list class.
- Parameters
-
- Returns
- YES if the specified string is a name of a list class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is an ordered set of any supported type.
- Returns
- YES if the receiving instance is an orderder set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isOrderedSet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any ordered set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of an ordered set class, otherwise NO
+ (BOOL) isOrderedSetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any ordered set class.
- Parameters
-
- Returns
- YES if the specified string is a name of an ordered set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a queue.
- Returns
- YES if the receiving instance is a queue, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isQueue: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any queue class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a queue class, otherwise NO
+ (BOOL) isQueueClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any queue class.
- Parameters
-
- Returns
- YES if the specified string is a name of a queue class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a set of any supported type.
- Returns
- YES if the receiving instance is a set, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isSet: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any set class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a set class, otherwise NO
+ (BOOL) isSetClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any set class.
- Parameters
-
- Returns
- YES if the specified string is a name of a set class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a sortable collection of any supported type.
- Returns
- YES if the receiving instance is a sortable collection, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isSortable: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any sortable collection class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a sortable collection class, otherwise NO
+ (BOOL) isSortableClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any sortable collection class.
- Parameters
-
- Returns
- YES if the specified string is a name of a sortable collection class, otherwise NO
Returns a boolean value that indicates whether the receiving instance is a stack.
- Returns
- YES if the receiving instance is a stack, otherwise NO
Reimplemented from <SCCollection>.
+ (BOOL) isStack: |
|
(id) |
object |
|
Returns a boolean value that indicates whether a given object is an instance of any stack class.
- Parameters
-
- Returns
- YES if the specified object is an instance of a stack class, otherwise NO
+ (BOOL) isStackClass: |
|
(NSString *) |
name |
|
Returns a boolean value that indicates whether a given string is a name of any stack class.
- Parameters
-
- Returns
- YES if the specified string is a name of a stack class, otherwise NO
Returns the ordered set with the all objects from the receiving collection.
- Returns
- An ordered set with objects
- SDK
- macOS 10.7+, iOS 7.0+
Reimplemented from <SCCollection>.
Reimplemented in SCOrderedSet.
Returns the queue with the all objects from the receiving collection.
- Returns
- A queue with objects
Reimplemented from <SCCollection>.
Reimplemented in SCQueue.
- (void) removeAllObjects |
|
|
|
Removes from the receiving collection objects that are present in the specified collection of any supported type.
- Parameters
-
collection | - the collection with the removed objects |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
Removes from the receiving collection the all occurrences of the specified object.
- Parameters
-
object | - the removed object |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) removeObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Removes from the receiving collection the all occurrences of the objects from the specified nil terminated list.
- Parameters
-
object | - the first removed object |
... | - the other removed objects |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) removeObjectsWithClass: |
|
(Class) |
oclass |
|
Removes from the receiving collection all objects of the specified class.
- Parameters
-
oclass | - the class of removed objects |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) removeObjectsWithClassName: |
|
(NSString *) |
name |
|
Removes from the receiving collection all objects of the class with the specified name.
- Parameters
-
name | - the name of removed objects class |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) reverseEnumerate |
|
|
|
Tells the instance delegate object for each object in the receiving collection, in reverse order.
Tells the specified delegate object for each object in the receiving collection, in reverse order.
- Parameters
-
delegate | - delegate object |
Returns the set with the all objects from the receiving collection.
- Returns
- A set with objects
Reimplemented from <SCCollection>.
Reimplemented in SCSet.
Replaces the content and settings of the receiving collection by using the content and settings from the specified existing collection.
- Parameters
-
collection | - existing source collection |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
Replaces the content of the receiving collection by using the specified existing object.
- Parameters
-
object | - existing source object |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
- (void) setObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Replaces the content of the receiving collection by using the objects from the specified nil terminated list.
- Parameters
-
object | - first source object |
... | - other source objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
Reimplemented from <SCMutableCollection>.
Returns the stack with the all objects from the receiving collection.
- Returns
- A stack with objects
Reimplemented from <SCCollection>.
Reimplemented in SCStack.
Returns the unidirectional list with the all objects from the receiving collection.
- Returns
- An unidirectional list with objects
Reimplemented from <SCCollection>.
Number of objects within the collection
Collection delegate object
- (NSString *) description |
|
readnonatomicretain |
Determines whether the collection is empty or contains at least one object.
- (NSEnumerator *) objectEnumerator |
|
readnonatomicretain |
Enumerator object that lets you access each object in the collection
Determines whether the collection is in read only mode.
- (NSEnumerator *) reverseObjectEnumerator |
|
readnonatomicretain |
Enumerator object that lets you access each object in the collection, in reverse order
The documentation for this class was generated from the following files: