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

Method toMap

corpus/java/training/guava/collect/FluentIterable.java:668–670  ·  view source on GitHub ↗

Returns an immutable map whose keys are the distinct elements of this FluentIterable 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 this iterable. When there are multiple instances of a key

(Function<? super E, V> valueFunction)

Source from the content-addressed store, hash-verified

666 * @since 14.0
667 */
668 public final <V> ImmutableMap<E, V> toMap(Function<? super E, V> valueFunction) {
669 return Maps.toMap(iterable, valueFunction);
670 }
671
672 /**
673 * Creates an index {@code ImmutableListMultimap} that contains the results of applying a

Callers

nothing calls this directly

Calls 1

toMapMethod · 0.95

Tested by

no test coverage detected