/guava/android/guava/src/com/google/common/collect/Maps.java
checkNotNull( keyPredicate) ;checkNotNull( valueFunction) ;
checkNotNull ( valueFunction ) ;
public static <K, V> ImmutableMap<K, V> toMap( Iterable<K> keys, Function<? super K, V> valueFunction) { return toMap(keys.iterator(), valueFunction); } public static <K, V> ImmutableMap<K, V> toMap( Iterator<K> keys, Function<? super K, V> valueFunction) { <extra_id_0> ImmutableMap.Builder<K, V> builder = ImmutableMap.builder(); while (keys.hasNext()) { K key = keys.next(); builder.put(key, valueFunction.apply(key)); } return builder.buildKeepingLast();