MCPcopy Index your code
hub / github.com/antlr/codebuff / uniqueIndex

Method uniqueIndex

output/java_guava/1.4.17/FluentIterable.java:786–788  ·  view source on GitHub ↗

Returns a map with the contents of this FluentIterable as its values, indexed by keys derived from those values. In other words, each input value produces an entry in the map whose key is the result of applying keyFunction to that value. These entries appear in the same order

(Function<? super E, K> keyFunction)

Source from the content-addressed store, hash-verified

784
785
786 public final <K> ImmutableMap<K, E> uniqueIndex(Function<? super E, K> keyFunction) {
787 return Maps.uniqueIndex(iterable, keyFunction);
788 }
789
790 /**
791 * Returns an array containing all of the elements from this fluent iterable in iteration order.

Callers

nothing calls this directly

Calls 1

uniqueIndexMethod · 0.95

Tested by

no test coverage detected