125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
-
+
|
XMPPDiscoIdentity *identity;
of_comparison_result_t categoryResult;
of_comparison_result_t typeResult;
if (object == self)
return OF_ORDERED_SAME;
if (![object isKindOfClass: [XMPPDiscoIdentity class]])
if (![(id)object isKindOfClass: [XMPPDiscoIdentity class]])
@throw [OFInvalidArgumentException exception];
identity = (XMPPDiscoIdentity *)object;
categoryResult = [_category compare: identity->_category];
if (categoryResult != OF_ORDERED_SAME)
return categoryResult;
|