Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for NewValue (0.25 sec)

  1. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            then:
            result == expectedResult
            map[key] == expectedResult
    
            where:
            key        | newValue   | expectedResult
            'existing' | 'newValue' | 'newValue'
            'existing' | null       | null
            'missing'  | 'newValue' | 'newValue'
            'missing'  | null       | null
        }
    
        def "method compute(#key, #newValue) reports change"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        String key = "key";
        long newValue = random.nextInt(MAX_ADDEND);
        for (int i = 0; i < ITERATIONS; i++) {
          long before = map.get(key);
          long result = map.put(key, newValue);
          long after = map.get(key);
          assertEquals(newValue, after);
          assertEquals(before, result);
          newValue += newValue;
        }
        assertEquals(1, map.size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/common/equality_test.go

    			return err
    		}
    	}
    
    	if correlatedObject == nil {
    		if c.OldValue != nil || c.NewValue != nil {
    			return fmt.Errorf("expected non-nil value, got nil")
    		}
    	} else {
    		// Check that the correlated object has the expected values
    		if !reflect.DeepEqual(correlatedObject.Value, c.NewValue) {
    			return fmt.Errorf("expected value %v, got %v", c.NewValue, correlatedObject.Value)
    		}
    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. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        String key = "key";
        long newValue = random.nextInt(MAX_ADDEND);
        for (int i = 0; i < ITERATIONS; i++) {
          long before = map.get(key);
          long result = map.put(key, newValue);
          long after = map.get(key);
          assertEquals(newValue, after);
          assertEquals(before, result);
          newValue += newValue;
        }
        assertEquals(1, map.size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileIntegrityViolationSuppressingObjectHolderDecorator.java

            try {
                return work.get();
            } catch (FileIntegrityViolationException e) {
                T newValue = updateAction.update(null);
                set(newValue);
                return newValue;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Count.java

        value += delta;
      }
    
      public int addAndGet(int delta) {
        return value += delta;
      }
    
      public void set(int newValue) {
        value = newValue;
      }
    
      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

            Object oldValue;
            Object newValue;
            synchronized (delegate) {
                oldValue = delegate.get(key);
                newValue = delegate.compute(key, remappingFunction);
            }
            reportAccess(key, oldValue);
            if (newValue != null) {
                reportChange(key, newValue);
            } else if (oldValue != null) {
                reportRemoval(key);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/InterceptorTestReceiver.java

            return testString;
        }
    
        public void setTestString(String newValue) {
            testString = newValue;
        }
    
        private boolean testFlag = false;
    
        public boolean isTestFlag() {
            return testFlag;
        }
    
        public void setTestFlag(boolean newValue) {
            testFlag = newValue;
        }
    
        public String intercepted = null;
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 23 08:15:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Count.java

        value += delta;
      }
    
      public int addAndGet(int delta) {
        return value += delta;
      }
    
      public void set(int newValue) {
        value = newValue;
      }
    
      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AtomicDouble.java

       * Sets to the given value.
       *
       * @param newValue the new value
       */
      public final void set(double newValue) {
        long next = doubleToRawLongBits(newValue);
        value = next;
      }
    
      /**
       * Eventually sets to the given value.
       *
       * @param newValue the new value
       */
      public final void lazySet(double newValue) {
        long next = doubleToRawLongBits(newValue);
        updater.lazySet(this, next);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top