Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for containsValue (0.06 sec)

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

        assertTrue(segment.containsValue(value));
        assertTrue(segment.containsValue(dummyValue));
    
        // expired
        dummy.setAccessTime(ticker.read() - 2);
        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(dummyValue));
      }
    
    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. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertTrue(segment.containsValue(value));
        assertTrue(segment.containsValue(dummyValue));
    
        // expired
        dummy.setAccessTime(ticker.read() - 2);
        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(dummyValue));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned map
       * to be a view, but it means that the function will be applied many times for bulk operations
       * like {@link Map#containsValue} and {@code Map.toString()}. For this to perform well, {@code
       * function} should be fast. To avoid lazy evaluation when the returned map doesn't need to be a
       * view, copy the returned map into a new map of your choosing.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Maps.java

       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned map
       * to be a view, but it means that the function will be applied many times for bulk operations
       * like {@link Map#containsValue} and {@code Map.toString()}. For this to perform well, {@code
       * function} should be fast. To avoid lazy evaluation when the returned map doesn't need to be a
       * view, copy the returned map into a new map of your choosing.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

          } finally {
            postReadCleanup();
          }
        }
    
        /**
         * This method is a convenience for testing. Code should call {@link LocalCache#containsValue}
         * directly.
         */
        @VisibleForTesting
        boolean containsValue(Object value) {
          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
    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