{"id":155,"date":"2007-09-11T07:59:35","date_gmt":"2007-09-11T15:59:35","guid":{"rendered":"http:\/\/www.ericfeminella.com\/blog\/2007\/09\/11\/as3-hashmap-update\/"},"modified":"2012-03-04T23:31:18","modified_gmt":"2012-03-05T04:31:18","slug":"as3-hashmap-update","status":"publish","type":"post","link":"https:\/\/www.ericfeminella.com\/blog\/2007\/09\/11\/as3-hashmap-update\/","title":{"rendered":"AS3 HashMap Update"},"content":{"rendered":"<p>I have updated the HashMap API to provide additional functionality which comes in handy when working with managed key \/ value pairs. <\/p>\n<p>Additionally,  I have also modified the HashMap class from an &#8220;is-a&#8221; to a &#8220;has-a&#8221; relationship as the previous version was a derivation of Dictionary, thus exposing the map and consequently causing a security breach in the API. This has been fixed as of this update as the map is now private rather than the object itself.<\/p>\n<p>The original IMap interface I created was modeled loosely after operations which are typical of the Java Map interface. However I have identified additional operations which are useful when working with key \/ value pairs. These new operations have been implemented in the latest HashMap class and comprise all of the new methods.<\/p>\n<p>Below is a list of the additional methods which have been implemented in the HashMap update:<\/p>\n<ol>\n<li><a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/asdocs\/HashMapAPI\/com\/ericfeminella\/utils\/HashMap.html#getValues()\">getValues<\/a>: Retrieves all of the values assigned to each key in the specified map<\/li>\n<li><a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/asdocs\/HashMapAPI\/com\/ericfeminella\/utils\/HashMap.html#reset()\">reset<\/a>: Resets all key assignments in the HashMap instance to null<\/li>\n<li><a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/asdocs\/HashMapAPI\/com\/ericfeminella\/utils\/HashMap.html#resetAllExcept()\">resetAllExcept<\/a>: Resets all key \/ values defined in the HashMap to null with the exception of the<br \/>\nspecified key<\/li>\n<li><a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/asdocs\/HashMapAPI\/com\/ericfeminella\/utils\/HashMap.html#clearAllExcept()\">clearAllExcept<\/a>: Clears all key \/ values defined in the HashMap to null with the exception of the specified key<\/li>\n<\/ol>\n<p>You can view the latest HashMap API source for the <a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/classes\/as3\/IMap.as.html\">IMap<\/a> interface and <a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/classes\/as3\/HashMap.as.html\">HashMap<\/a> implementation. Each method is accompanied by a detailed example.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have updated the HashMap API to provide additional functionality which comes in handy when working with managed key \/ value pairs. Additionally, I have also modified the HashMap class from an &#8220;is-a&#8221; to a &#8220;has-a&#8221; relationship as the previous version was a derivation of Dictionary, thus exposing the map and consequently causing a security breach in the API. This&#8230; <a class=\"read-more\" href=\"https:\/\/www.ericfeminella.com\/blog\/2007\/09\/11\/as3-hashmap-update\/\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[9],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-news"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}