Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeMin (0.15 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        LocalCache<Integer, Integer> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        map.put(1, 1);
        map.put(2, 1);
        map.put(3, 1);
        map.entrySet()
            .removeIf(
                entry -> {
                  if (entry.getValue().equals(1)) {
                    map.put(entry.getKey(), 2);
                    return true;
                  } else {
                    return false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public Iterator<V> iterator() {
          return new ValueIterator();
        }
    
        @Override
        public boolean removeIf(Predicate<? super V> filter) {
          checkNotNull(filter);
          return LocalCache.this.removeIf((k, v) -> filter.test(v));
        }
    
        @Override
        public boolean contains(Object o) {
          return LocalCache.this.containsValue(o);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top