FluentIterable uniqueIndex - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for FluentIterable uniqueIndex method.

This code example shows how to use the following methods:uniqueIndex
	 * @param keyFunction 
	 * @return 
	 * @see com.google.common.collect.FluentIterable#uniqueIndex(com.google.common.base.Function) 
	 */ 
	public final <K> ImmutableMap<K, O> uniqueIndex(Function<? super O, K> keyFunction) {
		return source.uniqueIndex(keyFunction);
	} 
 
	/** 
	 * @param type 
	 * @return 
	 * @see com.google.common.collect.FluentIterable#toArray(java.lang.Class) 
	 */ 
	public final O[] toArray(Class<O> type) {
		return source.toArray(type);
	} 
 
	/** 
	 * @param collection 
	 * @return 
3
CodeRank
uniqueIndex Method Overview
Returns an immutable map for which the values() are the elements of this FluentIterable in the given order, and each key is the product of invoking a supplied function on its corresponding value.
See Code Examples for other Guava FluentIterable Methods: