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

A protocol for the creation of copies. More...

#import <ObjFW/OFObject.h>

Inheritance diagram for <OFCopying>:
OFArray OFData OFDate OFDictionary OFHTTPCookie OFHTTPRequest OFList OFMapTable OFMessagePackExtension OFNull OFNumber OFSandbox OFSet OFStream OFString OFUDPSocket OFURL OFXMLNode

Instance Methods

(id) - copy
 Copies the object. More...
 

Detailed Description

A protocol for the creation of copies.

Method Documentation

◆ copy()

- (id) copy

Copies the object.

For classes which can be immutable or mutable, this returns an immutable copy. If only a mutable version of the class exists, it creates a mutable copy.

Returns
A copy of the object

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