Tabnine Logo
SoftCache$CacheEntry.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
com.palantir.util.SoftCache$CacheEntry

Best Java code snippets using com.palantir.util.SoftCache$CacheEntry.getValue (Showing top 8 results out of 315)

origin: palantir/atlasdb

public synchronized Set<V> removeMatchingKeys(com.google.common.base.Predicate<K> predicate) {
  Set<V> removedValues = Sets.newHashSet();
  Iterator<Entry<K, CacheEntry<V>>> entryIterator = cacheEntries.entrySet().iterator();
  while (entryIterator.hasNext()) {
    Entry<K, CacheEntry<V>> entry = entryIterator.next();
    if (predicate.apply(entry.getKey())) {
      entryIterator.remove();
      removedValues.add(entry.getValue().getValue());
    }
  }
  return removedValues;
}
origin: palantir/atlasdb

public synchronized boolean containsValue(V val) {
  for (CacheEntry<V> entry : cacheEntries.values()) {
    V myValue = entry.getValue();
    if (myValue != null && myValue.equals(val)) {
      return true;
    }
  }
  return false;
}
origin: palantir/atlasdb

V ret = entry.getValue();
origin: com.palantir.atlasdb/atlasdb-commons

V ret = entry.getValue();
origin: com.palantir.atlasdb/atlasdb-commons

private V safeValue(CacheEntry<V> entry) {
  return (entry != null) ? entry.getValue() : null;
}
origin: com.palantir.atlasdb/atlasdb-commons

public synchronized Set<V> removeMatchingKeys(com.google.common.base.Predicate<K> predicate) {
  Set<V> removedValues = Sets.newHashSet();
  Iterator<Entry<K, CacheEntry<V>>> entryIterator = cacheEntries.entrySet().iterator();
  while (entryIterator.hasNext()) {
    Entry<K, CacheEntry<V>> entry = entryIterator.next();
    if (predicate.apply(entry.getKey())) {
      entryIterator.remove();
      removedValues.add(entry.getValue().getValue());
    }
  }
  return removedValues;
}
origin: com.palantir.atlasdb/atlasdb-commons

public synchronized boolean containsValue(V val) {
  for (CacheEntry<V> entry : cacheEntries.values()) {
    V myValue = entry.getValue();
    if (myValue != null && myValue.equals(val)) {
      return true;
    }
  }
  return false;
}
origin: palantir/atlasdb

private V safeValue(CacheEntry<V> entry) {
  return (entry != null) ? entry.getValue() : null;
}
com.palantir.utilSoftCache$CacheEntrygetValue

Popular methods of SoftCache$CacheEntry

  • isValid

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • Menu (java.awt)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • 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
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook extensions
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