18 OF_ASSUME_NONNULL_BEGIN
25 @interface OFTriple OF_GENERIC(FirstType, SecondType, ThirdType):
27 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
29 # define SecondType id
33 FirstType _Nullable _firstObject;
34 SecondType _Nullable _secondObject;
35 ThirdType _Nullable _thirdObject;
42 @property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
43 FirstType firstObject;
48 @property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
49 SecondType secondObject;
54 @property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
55 ThirdType thirdObject;
65 + (instancetype)tripleWithFirstObject: (nullable FirstType)firstObject
66 secondObject: (nullable SecondType)secondObject
67 thirdObject: (nullable ThirdType)thirdObject;
77 - (instancetype)initWithFirstObject: (nullable FirstType)firstObject
78 secondObject: (nullable SecondType)secondObject
79 thirdObject: (nullable ThirdType)thirdObject
80 OF_DESIGNATED_INITIALIZER;
81 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
90 #import "OFMutableTriple.h"
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class for storing a triple of three objects.
Definition: OFTriple.h:38
A protocol for the creation of copies.
Definition: OFObject.h:1187
A protocol for the creation of mutable copies.
Definition: OFObject.h:1208