ObjFW
Instance Methods | List of all members
<OFCollection> Protocol Reference

A protocol with methods common for all collections. More...

#import <ObjFW/OFCollection.h>

Inheritance diagram for <OFCollection>:
<OFEnumerating> <OFFastEnumeration> OFArray OFDictionary OFList OFSet OFMutableArray OFMutableDictionary OFSortedList OFMutableSet OFCountedSet

Instance Methods

(size_t) - count
 Returns the number of objects in the collection. More...
 
(bool) - containsObject:
 Checks whether the collection contains an object equal to the specified object. More...
 
- Instance Methods inherited from <OFEnumerating>
(OFEnumerator *) - objectEnumerator
 Returns an OFEnumerator to enumerate through all objects of the collection. More...
 
- Instance Methods inherited from <OFFastEnumeration>
(int) - countByEnumeratingWithState:objects:count:
 A method which is called by the code produced by the compiler when doing a fast enumeration. More...
 

Detailed Description

A protocol with methods common for all collections.

Method Documentation

- (bool) containsObject: (nullable id)  object

Checks whether the collection contains an object equal to the specified object.

Parameters
objectThe object which is checked for being in the collection
Returns
A boolean whether the collection contains the specified object
- (size_t) count

Returns the number of objects in the collection.

Returns
The number of objects in the collection

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