Index: src/OFArray.h
==================================================================
--- src/OFArray.h
+++ src/OFArray.h
@@ -179,10 +179,20 @@
* \return The index of the first object that has the same aaddress as
* the specified object or OF_INVALID_INDEX if it was not found
*/
- (size_t)indexOfObjectIdenticalTo: (id)object;
+/**
+ * \brief Checks whether the array contains an object with the specified
+ * address.
+ *
+ * \param object The object which is checked for being in the array
+ * \return A boolean whether the array contains an object with the specified
+ * address.
+ */
+- (BOOL)containsObjectIdenticalTo: (id)object;
+
/**
* \brief Returns the first object of the array or nil.
*
* The returned object is not retained and autoreleased for performance
* reasons!
Index: src/OFCollection.h
==================================================================
--- src/OFCollection.h
+++ src/OFCollection.h
@@ -33,20 +33,10 @@
/**
* \brief Checks whether the collection contains an object equal to the
* specified object.
*
- * \param The object which is checked for being in the collection
+ * \param object The object which is checked for being in the collection
* \return A boolean whether the collection contains the specified object
*/
- (BOOL)containsObject: (id)object;
-
-/**
- * \brief Checks whether the collection contains an object with the specified
- * address.
- *
- * \param The object which is checked for being in the collection
- * \return A boolean whether the collection contains an object with the
- * specified address.
- */
-- (BOOL)containsObjectIdenticalTo: (id)object;
@end
Index: src/OFDictionary.h
==================================================================
--- src/OFDictionary.h
+++ src/OFDictionary.h
@@ -161,10 +161,20 @@
* \param key The key whose object should be returned
* \return The object for the given key or nil if the key was not found
*/
- (id)objectForKey: (id )key;
+/**
+ * \brief Checks whether the dictionary contains an object with the specified
+ * address.
+ *
+ * \param object The object which is checked for being in the dictionary
+ * \return A boolean whether the dictionary contains an object with the
+ * specified address.
+ */
+- (BOOL)containsObjectIdenticalTo: (id)object;
+
/**
* \brief Returns an OFEnumerator to enumerate through the dictionary's keys.
*
* \return An OFEnumerator to enumerate through the dictionary's keys
*/
Index: src/OFDictionary.m
==================================================================
--- src/OFDictionary.m
+++ src/OFDictionary.m
@@ -600,35 +600,35 @@
return NO;
return YES;
}
-- (BOOL)containsObject: (id)obj
+- (BOOL)containsObject: (id)object
{
uint32_t i;
if (count == 0)
return NO;
for (i = 0; i < size; i++)
if (data[i] != NULL && data[i] != DELETED &&
- [data[i]->object isEqual: obj])
+ [data[i]->object isEqual: object])
return YES;
return NO;
}
-- (BOOL)containsObjectIdenticalTo: (id)obj
+- (BOOL)containsObjectIdenticalTo: (id)object
{
uint32_t i;
if (count == 0)
return NO;
for (i = 0; i < size; i++)
if (data[i] != NULL && data[i] != DELETED &&
- data[i]->object == obj)
+ data[i]->object == object)
return YES;
return NO;
}
Index: src/OFList.h
==================================================================
--- src/OFList.h
+++ src/OFList.h
@@ -124,10 +124,19 @@
*
* \param listObject The list object returned by append / prepend
*/
- (void)removeListObject: (of_list_object_t*)listObject;
+/**
+ * \brief Checks whether the list contains an object with the specified address.
+ *
+ * \param object The object which is checked for being in the list
+ * \return A boolean whether the list contains an object with the specified
+ * address.
+ */
+- (BOOL)containsObjectIdenticalTo: (id)object;
+
/**
* \brief Returns the first object of the list or nil.
*
* The returned object is not retained and autoreleased for performance
* reasons!