Tabnine Logo
CacheLoader$FunctionToCacheLoader.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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: 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: 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: 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.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.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<init>

Popular methods of CacheLoader$FunctionToCacheLoader

    Popular in Java

    • Making http requests using okhttp
    • notifyDataSetChanged (ArrayAdapter)
    • compareTo (BigDecimal)
    • setContentView (Activity)
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • DecimalFormat (java.text)
      A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • Reference (javax.naming)
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Runner (org.openjdk.jmh.runner)
    • Best IntelliJ plugins
    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