/** Adds to the receiving dictionary the entiries from another dictionary. \param $aDict \returns void */ public function addEntriesFromDictionary(RTDictionary $aDict) { $keys = $aDict->allKeys(); $objects = $aDict->allValues(); for ($i = 0; $i < $keys->count(); $i++) { $this->_setObject_forKey($objects->objectAtIndex($i), $keys->objectAtIndex($i)); } }
/** Returns YES if the receiving dictionary and aDict have the same number of entries and for a given key, the corresponding objecs are also the same. \param $aDict \returns BOOL */ public function isEqualToDictionary(RTDictionary $aDict) { return $this->count() == $aDict->count() && $this->allKeys()->isEqualToArray($aDict->allKeys()) && $this->allValues()->isEqualToArray($aDict->allValues()); }