Returns a live Map view whose keys are the contents of set and whose values are computed on demand using function. To get an immutable copy instead, use #toMap(Iterable, Function). Specifically, for each k in the backing set, the returned map has an
(Set<K> set, Function<? super K, V> function)
| 760 | |
| 761 | |
| 762 | public static <K, V> Map<K, V> asMap(Set<K> set, Function<? super K, V> function) { |
| 763 | return new AsMapView<K, V>(set, function); |
| 764 | } |
| 765 | |
| 766 | /** |
| 767 | * Returns a view of the sorted set as a map, mapping keys from the set |
no outgoing calls
no test coverage detected