MCPcopy Create free account
hub / github.com/antlr/codebuff / asMap

Method asMap

corpus/java/training/guava/collect/Maps.java:736–738  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

nodeConnectionsOfMethod · 0.95
toStringMethod · 0.95
nodeToIncidentEdgesMethod · 0.95
nodeToAdjacentNodesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected