Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for oldValue (0.16 sec)

  1. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

            Object oldValue;
            synchronized (delegate) {
                oldValue = delegate.putIfAbsent(key, value);
            }
            reportAccess(key, oldValue);
            if (oldValue == null) {
                // Properties disallow null values, so it is safe to assume that the map was changed.
                reportChange(key, value);
            }
            return oldValue;
    
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          }
    
          while (true) {
            int oldValue = existingCounter.get();
            if (oldValue != 0) {
              try {
                int newValue = IntMath.checkedAdd(oldValue, occurrences);
                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/common/equality_test.go

    		}
    		if !reflect.DeepEqual(correlatedObject.OldValue, c.OldValue) {
    			return fmt.Errorf("expected old value %v, got %v", c.OldValue, correlatedObject.OldValue)
    		}
    
    		// Check that the correlated object is considered equal to the expected value
    		if (c.ExpectEqual || reflect.DeepEqual(correlatedObject.Value, correlatedObject.OldValue)) != correlatedObject.CachedDeepEqual() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 21:36:46 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            when:
            def result = getMapUnderTestToWrite().put(key, newValue)
    
            then:
            result == oldValue
            1 * onAccess.accept(key, oldValue)
            then:
            1 * onChange.accept(key, newValue)
    
            where:
            key          | oldValue        | newValue
            'existing'   | 'existingValue' | 'changed'
            'missingKey' | null            | 'changed'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractBiMap.java

        // The cast is safe because the callers of this method first check that the key is present.
        V oldValue = uncheckedCastNullableTToT(delegate.remove(key));
        removeFromInverseMap(oldValue);
        return oldValue;
      }
    
      private void removeFromInverseMap(@ParametricNullness V oldValue) {
        inverse.delegate.remove(oldValue);
      }
    
      // Bulk Operations
    
      @Override
      public void putAll(Map<? extends K, ? extends V> map) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          while (true) {
            long oldValue = atomic.get();
            if (oldValue == 0L) {
              // don't compareAndSet a zero
              if (map.replace(key, atomic, new AtomicLong(delta))) {
                return 0L;
              }
              // atomic replaced
              continue outer;
            }
    
            long newValue = oldValue + delta;
            if (atomic.compareAndSet(oldValue, newValue)) {
              return oldValue;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          }
    
          while (true) {
            int oldValue = existingCounter.get();
            if (oldValue != 0) {
              try {
                int newValue = IntMath.checkedAdd(oldValue, occurrences);
                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        Long result =
            map.compute(
                key,
                (k, oldValue) -> {
                  if (oldValue == null || oldValue == 0) {
                    noValue.set(true);
                    return newValue;
                  } else {
                    return oldValue;
                  }
                });
        return noValue.get() ? 0L : requireNonNull(result).longValue();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractBiMap.java

        // The cast is safe because the callers of this method first check that the key is present.
        V oldValue = uncheckedCastNullableTToT(delegate.remove(key));
        removeFromInverseMap(oldValue);
        return oldValue;
      }
    
      private void removeFromInverseMap(@ParametricNullness V oldValue) {
        inverse.delegate.remove(oldValue);
      }
    
      // Bulk Operations
    
      @Override
      public void putAll(Map<? extends K, ? extends V> map) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  10. 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)
Back to top