com.google.common.base.Function



API Populatity

92 Client projects

Project: com.google

Project apache/hbase in file ...che.hadoop.hbase.mapreduce.TableMapReduceUtil.java (2010-06-02)
@@ -49,6 +49,8 @@ import org.apache.hadoop.util.StringUtils;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.zookeeper.ZooKeeper;
 
+import com.google.common.base.Function;
+
 /**
  * Utility for {@link TableMapper} and {@link TableReducer}
  */
@@ -245,6 +247,7 @@ public class TableMapReduceUtil {
     try {
       addDependencyJars(job.getConfiguration(),
           ZooKeeper.class,
+          Function.class, // Guava collections
           job.getMapOutputKeyClass(),
           job.getMapOutputValueClass(),
           job.getOutputKeyClass(),
Project JetBrains/intellij-community in file ...tbrains.python.packaging.PyPackageManagerImpl.java (2014-09-09)
@@ -15,6 +15,7 @@
  */
 package com.jetbrains.python.packaging;
 
+import com.google.common.base.Function;
 import com.google.common.collect.Collections2;
 import com.google.common.collect.Lists;
 import com.intellij.execution.ExecutionException;
@@ -608,7 +609,7 @@ public class PyPackageManagerImpl extends PyPackageManager {
         final List<String> cmdline = new ArrayList<String>();
         cmdline.add(homePath);
         cmdline.add(RemoteFile.detectSystemByPath(homePath).createRemoteFile(helperPath).getPath());
-        cmdline.addAll(Collections2.transform(args, new com.google.common.base.Function<String, String>() {
+        cmdline.addAll(Collections2.transform(args, new Function<String, String>() {
           @Override
           public String apply(@Nullable String input) {
             return quoteIfNeeded(input);
Project JetBrains/kotlin in file ...tbrains.jet.lang.resolve.BodiesResolveContext.java (2012-11-06)
@@ -16,6 +16,7 @@
 
 package org.jetbrains.jet.lang.resolve;
 
+import com.google.common.base.Function;
 import com.intellij.psi.PsiElement;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jet.lang.descriptors.*;
@@ -33,7 +34,7 @@ public interface BodiesResolveContext {
     Map<JetObjectDeclaration, MutableClassDescriptor> getObjects();
     Map<JetProperty, PropertyDescriptor> getProperties();
     Map<JetNamedFunction, SimpleFunctionDescriptor> getFunctions();
-    Map<JetDeclaration, JetScope> getDeclaringScopes();
+    Function<JetDeclaration, JetScope> getDeclaringScopes();
     Map<JetScript, ScriptDescriptor> getScripts();
     Map<JetScript, WritableScope> getScriptScopes();