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)
| 734 | * @since 14.0 |
| 735 | */ |
| 736 | public static <K, V> Map<K, V> asMap(Set<K> set, Function<? super K, V> function) { |
| 737 | return new AsMapView<K, V>(set, function); |
| 738 | } |
| 739 | |
| 740 | /** |
| 741 | * Returns a view of the sorted set as a map, mapping keys from the set |
no outgoing calls
no test coverage detected