commit | f4130cf35fa128e36f96e55955d4f5db86197e4a | [log] [tgz] |
---|---|---|
author | Chet Haase <chet@google.com> | Thu Jun 06 16:34:33 2013 -0700 |
committer | Chet Haase <chet@google.com> | Thu Jun 06 16:43:41 2013 -0700 |
tree | 0ae8a2c211bebc906d67402e3aa7e0c5b801babe | |
parent | ae8f82f2015612a659b95007c355d12c83fbcefc [diff] |
Additional functionality and performance for ArrayMap Added equals() and hashCode() to ArrayMap to allow equals() tests of maps with the same key/value pairs to return true. Changed putAll() to handle the case of an empty map faster, just copying the arrays instead of adding elements one by one. Added to ArrayMapTests to test new equals() and copy constructor functionality. Issue #9299310 Optimize ArrayMap copy constructor Change-Id: I1186a0eddd1fd53a0f380c2f3972fc1942cdf879