objc

Instance Methods
<CollectionProtocol> Protocol Reference

A protocol that defines collection methods for an Object. More...

#import <Foundation/Foundation.h>

Inheritance diagram for <CollectionProtocol>:
Inheritance graph
[legend]

Instance Methods

(unsigned int) - count
 Returns the number of elements in the collection. More...
 
(BOOL- containsObject:
 Returns YES if the collection contains the specified object. More...
 

Detailed Description

A protocol that defines collection methods for an Object.

Definition at line 13 of file Collection+Protocol.h.

Method Documentation

◆ containsObject:()

- (BOOL) containsObject: (id object
required

Returns YES if the collection contains the specified object.

Parameters
objectThe object to check for containment.
Returns
YES if the collection contains the specified object, NO otherwise.

Reimplemented in NXArray.

◆ count()

- (unsigned int) count
required

Returns the number of elements in the collection.

Returns
The number of elements in the collection.

Reimplemented in NXMap, and NXArray.


The documentation for this protocol was generated from the following file: