Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 116 for oldValue (0.21 sec)

  1. android/guava/src/com/google/common/cache/CacheLoader.java

       *     the thread's interrupt status is set
       * @since 11.0
       */
      @GwtIncompatible // Futures
      public ListenableFuture<V> reload(K key, V oldValue) throws Exception {
        checkNotNull(key);
        checkNotNull(oldValue);
        return Futures.immediateFuture(load(key));
      }
    
      /**
       * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Set<Entry<K, V>> entrySet = map.entrySet();
        Entry<K, V> entry = entrySet.iterator().next();
        V oldValue = entry.getValue();
        V returnedValue = entry.setValue(oldValue);
        assertEquals(oldValue, returnedValue);
        assertTrue(entrySet.contains(mapEntry(entry.getKey(), oldValue)));
        assertEquals(oldValue, map.get(entry.getKey()));
        assertInvariants(map);
      }
    
      public void testEqualsForEqualMap() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      @CheckForNull
      public V replace(K key, V value) {
        return delegate().replace(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

          K key = entryArray[i].getKey();
          V value = entryArray[i].getValue();
          V oldValue = delegateMap.put(key, value);
          if (oldValue != null) {
            if (throwIfDuplicateKeys) {
              throw conflictException("key", entryArray[i], entryArray[i].getKey() + "=" + oldValue);
            }
            if (duplicates == null) {
              duplicates = new HashMap<>();
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/scopeids/DefaultPersistentScopeIdLoader.java

            return store.maybeUpdate(new ObjectHolder.UpdateAction<UniqueId>() {
                @Override
                public UniqueId update(UniqueId oldValue) {
                    if (oldValue == null) {
                        return generator.create();
                    } else {
                        return oldValue;
                    }
                }
            });
        }
    
        private ObjectHolder<UniqueId> store(ScopeParams params) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 18:14:29 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

          long mask = 1L << bitIndex; // only cares about low 6 bits of bitIndex
    
          long oldValue;
          long newValue;
          do {
            oldValue = data.get(longIndex);
            newValue = oldValue | mask;
            if (oldValue == newValue) {
              return false;
            }
          } while (!data.compareAndSet(longIndex, oldValue, newValue));
    
          // We turned the bit on, so increment bitCount.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheLoader.java

       *     the thread's interrupt status is set
       * @since 11.0
       */
      @GwtIncompatible // Futures
      public ListenableFuture<V> reload(K key, V oldValue) throws Exception {
        checkNotNull(key);
        checkNotNull(oldValue);
        return Futures.immediateFuture(load(key));
      }
    
      /**
       * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Set<Entry<K, V>> entrySet = map.entrySet();
        Entry<K, V> entry = entrySet.iterator().next();
        V oldValue = entry.getValue();
        V returnedValue = entry.setValue(oldValue);
        assertEquals(oldValue, returnedValue);
        assertTrue(entrySet.contains(mapEntry(entry.getKey(), oldValue)));
        assertEquals(oldValue, map.get(entry.getKey()));
        assertInvariants(map);
      }
    
      public void testEqualsForEqualMap() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AtomicDouble.java

       */
      @CanIgnoreReturnValue
      public final double getAndAccumulate(double x, DoubleBinaryOperator accumulatorFunction) {
        checkNotNull(accumulatorFunction);
        return getAndUpdate(oldValue -> accumulatorFunction.applyAsDouble(oldValue, x));
      }
    
      /**
       * Atomically updates the current value with the results of applying the given function to the
       * current and given values.
       *
       * @param x the update value
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      @CheckForNull
      public V replace(K key, V value) {
        return delegate().replace(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top