@@ -49,43 +49,44 @@ * \param bits The size of the hash to use * \return An initialized OFDictionary */ - initWithHashSize: (int)hashsize; +/** + * \return The average number of items in a used bucket. Buckets that are + * completely empty are not in the calculation. If this value is >= 2.0, + * you should resize the dictionary, in most cases even earlier! + */ +- (float)averageItemsPerBucket; + +/** + * \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)get: (OFObject*)key; + /** * Sets a key to an object. A key can be any object. * * \param key The key to set * \param obj The object to set the key to */ - set: (OFObject *)key to: (OFObject*)obj; -/** - * \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)get: (OFObject*)key; - /** * Remove the object with the given key from the dictionary. * * \param key The key whose object should be removed */ - remove: (OFObject*)key; -/** - * \return The average number of items in a used bucket. Buckets that are - * completely empty are not in the calculation. If this value is >= 2.0, - * you should resize the dictionary, in most cases even earlier! - */ -- (float)averageItemsPerBucket; - /** * Changes the hash size of the dictionary. * * \param hashsize The new hash size for the dictionary */ - changeHashSize: (int)hashsize; @end #import "OFIterator.h" +#import "OFMutableDictionary.h"