commit | 4e9c07c0de199169374bded403805c92f1c1c6c1 | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Tue Aug 26 11:53:32 2014 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Tue Aug 26 11:53:32 2014 -0700 |
tree | 0acf3f5de85b20f0b507b76b9275ea3a880ff27d | |
parent | 5b8e5a7d4c930b42e1a3c2b3e67144b89d37efa2 [diff] |
Add indexOf method to ArrayMap & ArraySet Getting the indexOf is useful for doing compound operations like: int i = set.indexOf(key); if (i >= 0) { Object o = set.valueAt(i); o.blah(); set.removeAt(i); } Change-Id: I3d4b77d1461ba969fc6b4d332d52d4d084b5b53c