Tabnine Logo
CacheLoader$FunctionToCacheLoader
Code IndexAdd Tabnine to your IDE (free)

How to use
CacheLoader$FunctionToCacheLoader
in
com.google.common.cache

Best Java code snippets using com.google.common.cache.CacheLoader$FunctionToCacheLoader (Showing top 14 results out of 315)

origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Returns a cache loader that uses {@code function} to load keys, without supporting either
 * reloading or bulk loading. This allows creating a cache loader using a lambda expression.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<>(function);
}
origin: org.sonatype.sisu/sisu-guava

/**
 * Returns a {@code CacheLoader} which creates values by applying a {@code Function} to the key.
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a cache loader that uses {@code function} to load keys, without supporting either
 * reloading or bulk loading. This allows creating a cache loader using a lambda expression.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<>(function);
}
origin: org.hudsonci.lib.guava/guava

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: com.google.guava/guava-jdk5

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: Nextdoor/bender

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
@Beta
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<K, V>(function);
}
origin: com.diffplug.guava/guava-cache

/**
 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
 * to create a <i>new</i> function just to pass it in here; just subclass {@code CacheLoader} and
 * implement {@link #load load} instead.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
  return new FunctionToCacheLoader<K, V>(function);
}
origin: wildfly/wildfly

/**
 * Returns a cache loader that uses {@code function} to load keys, without supporting either
 * reloading or bulk loading. This allows creating a cache loader using a lambda expression.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<>(function);
}
origin: google/j2objc

/**
 * Returns a cache loader that uses {@code function} to load keys, and without supporting either
 * reloading or bulk loading. This is most useful when you can pass a lambda expression. Otherwise
 * it is useful mostly when you already have an existing function instance.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<>(function);
}
origin: google/guava

/**
 * Returns a cache loader that uses {@code function} to load keys, without supporting either
 * reloading or bulk loading. This allows creating a cache loader using a lambda expression.
 *
 * @param function the function to be used for loading values; must never return {@code null}
 * @return a cache loader that loads values by passing each key to {@code function}
 */
public static <K, V> CacheLoader<K, V> from(Function<K, V> function) {
 return new FunctionToCacheLoader<>(function);
}
com.google.common.cacheCacheLoader$FunctionToCacheLoader

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now