Tabnine Logo
LoadingCache
Code IndexAdd Tabnine to your IDE (free)

How to use
LoadingCache
in
com.nytimes.android.external.cache3

Best Java code snippets using com.nytimes.android.external.cache3.LoadingCache (Showing top 7 results out of 315)

origin: com.nytimes.android/cache3

@Override
public V getUnchecked(K key) {
  return autoDelegate.getUnchecked(key);
}
origin: com.nytimes.android/cache3

@Override
public final V apply(K key) {
  return autoDelegate.apply(key);
}
origin: com.nytimes.android/cache3

@Override
public V get(K key) throws ExecutionException {
  return autoDelegate.get(key);
}
origin: com.nytimes.android/cache3

@Override
public Map<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
  return autoDelegate.getAll(keys);
}
origin: com.nytimes.android/cache3

@Override
public void refresh(K key) {
  autoDelegate.refresh(key);
}
origin: com.nytimes.android/filesystem3

@Nullable
private FSFile getFile(@Nonnull String path) {
  return files.getUnchecked(cleanPath(path));
}
origin: com.nytimes.android/filesystem3

  @Nonnull
  private Collection<FSFile> findFiles(@Nonnull String path) throws FileNotFoundException {
    File searchRoot = new File(root, util.simplifyPath(path));
    if (searchRoot.exists() && searchRoot.isFile()) {
      throw new FileNotFoundException(format("expecting a directory at %s, instead found a file", path));
    }

    Collection<FSFile> foundFiles = new ArrayList<>();
    BreadthFirstFileTreeIterator iterator = new BreadthFirstFileTreeIterator(searchRoot);
    while (iterator.hasNext()) {
      File file = (File) iterator.next();
      foundFiles.add(files.getUnchecked(util.simplifyPath(file.getPath()
          .replaceFirst(root.getPath(), ""))));
    }
    return foundFiles;
  }
}
com.nytimes.android.external.cache3LoadingCache

Most used methods

  • getUnchecked
    Returns the value associated with key in this cache, first loading that value if necessary. No obser
  • apply
  • get
    Returns the value associated with key in this cache, first loading that value if necessary. No obser
  • getAll
    Returns a map of the values associated with keys, creating or retrieving those values if necessary.
  • refresh
    Loads a new value for key key, possibly asynchronously. While the new value is loading the previous

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top plugins for WebStorm
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