ObjFW
Loading...
Searching...
No Matches
Instance Methods | List of all members
<OFComparing> Protocol Reference

A protocol for comparing objects. More...

#include <ObjFW/OFObject.h>

Inheritance diagram for <OFComparing>:
OFData OFDate OFNumber OFString OFTimer OFUUID OFMutableData OFSecureData OFConstantString OFMutableString

Instance Methods

(OFComparisonResult- compare:
 Compares the object to another object.
 

Detailed Description

A protocol for comparing objects.

This protocol is implemented by objects that can be compared. Its only method, compare: (OFComparing-p), should be overridden with a stronger type.

Method Documentation

◆ compare:

- (OFComparisonResult) compare: (id< OFComparing >) object

Compares the object to another object.

Parameters
objectAn object to compare the object to
Returns
The result of the comparison

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