Returns an immutable map whose keys are the distinct elements of keys and whose value for each key was computed by valueFunction. The map's iteration order is the order of the first appearance of each key in keys. When there are multiple instances of a key in keys
(Iterable<K> keys, Function<? super K, V> valueFunction)
| 1172 | |
| 1173 | |
| 1174 | public static <K, V> ImmutableMap<K, V> toMap(Iterable<K> keys, Function<? super K, V> valueFunction) { |
| 1175 | return toMap(keys.iterator(), valueFunction); |
| 1176 | } |
| 1177 | |
| 1178 | /** |
| 1179 | * Returns an immutable map whose keys are the distinct elements of {@code |
no test coverage detected