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

Method toMap

output/java_guava/1.4.19/FluentIterable.java:721–723  ·  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

719
720
721 public final <V> ImmutableMap<E, V> toMap(Function<? super E, V> valueFunction) {
722 return Maps.toMap(iterable, valueFunction);
723 }
724
725 /**
726 * 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