Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for changed (0.29 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

        checkNotNull(filter);
        boolean changed = false;
        for (K key : keySet()) {
          while (true) {
            V value = get(key);
            if (value == null || !filter.test(key, value)) {
              break;
            } else if (LocalCache.this.remove(key, value)) {
              changed = true;
              break;
            }
          }
        }
        return changed;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // The composed future also yields 6.
        assertEquals(6, getDone(transformedFuture).intValue());
    
        // Repeated calls yield the same value even though the function's behavior
        // changes
        holder.value = 3;
        assertEquals(6, getDone(transformedFuture).intValue());
        assertEquals(7, adder.apply(4).intValue());
    
        // Once more, with feeling.
        holder.value = 4;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/LocalCache.java

         * be read without locking. Next fields of nodes are immutable (final). All list additions are
         * performed at the front of each bin. This makes it easy to check changes, and also fast to
         * traverse. When nodes would otherwise be changed, new nodes are created to replace them. This
         * works well for hash tables since the bin lists tend to be short. (The average length is less
         * than two.)
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Maps.java

      }
    
      /**
       * Computes the difference between two maps. This difference is an immutable snapshot of the state
       * of the maps at the time this method is called. It will never change, even if the maps change at
       * a later time.
       *
       * <p>Since this method uses {@code HashMap} instances internally, the keys of the supplied maps
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // The composed future also yields 6.
        assertEquals(6, getDone(transformedFuture).intValue());
    
        // Repeated calls yield the same value even though the function's behavior
        // changes
        holder.value = 3;
        assertEquals(6, getDone(transformedFuture).intValue());
        assertEquals(7, adder.apply(4).intValue());
    
        // Once more, with feeling.
        holder.value = 4;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top