Get a single collection of all the values in the map. All of the values in the map will be conglomerated into one collection. There will not be any duplicate removal. @return collection of values.
()
| 152 | * @return collection of values. |
| 153 | */ |
| 154 | public Collection<V> values() { |
| 155 | Set<K> keys = mMap.keySet(); |
| 156 | int size = 0; |
| 157 | for (K k : keys) { |
| 158 | size += mMap.get(k).size(); |
| 159 | } |
| 160 | Collection<V> values = new ArrayList<V>(size); |
| 161 | for (K k : keys) { |
| 162 | values.addAll(mMap.get(k)); |
| 163 | } |
| 164 | return values; |
| 165 | } |
| 166 | |
| 167 | @Override |
| 168 | public String toString() { |