Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for NewValue (0.21 sec)

  1. 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)
  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. 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)
  4. 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)
  5. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

                return delta;
              }
              // atomic replaced
              continue outer;
            }
    
            long newValue = oldValue + delta;
            if (atomic.compareAndSet(oldValue, newValue)) {
              return newValue;
            }
            // value changed
          }
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/CompositeInterceptorTestReceiver.java

        public String getTestString() {
            return testString;
        }
    
        public void setTestString(String newValue) {
            testString = newValue;
        }
    
        public boolean isTestFlag() {
            return testFlag;
        }
    
        public void setTestFlag(boolean newValue) {
            testFlag = newValue;
        }
    
        @Override
        public String toString() {
            return "CompositeInterceptorTestReceiver";
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 11:38:52 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

            when:
            configurationCacheRun("thing", "-DCI=$newValue")
    
            then: 'undeclared properties are considered build inputs'
            configurationCache.assertStateStored()
            problems.assertResultHasProblems(result)
            outputContains("apply = $newValue")
            outputContains("task = $newValue")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/CompositeCallInterceptionTestInterceptorsDeclaration.java

        public static void intercept_testString(
            @ParameterKind.Receiver CompositeInterceptorTestReceiver self,
            String newValue,
            @ParameterKind.CallerClassName String consumer
        ) {
            self.intercepted = "composite.setTestString(String)";
            self.setTestString(newValue);
        }
    
        @InterceptGroovyCalls
        @CallableKind.GroovyPropertyGetter
        public static boolean intercept_testFlag(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 11:38:52 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/CallInterceptingMetaClass.java

            if (useSuper || fromInsideClass) {
                adaptee.setProperty(sender, object, name, newValue, useSuper, fromInsideClass);
            } else {
                invokeIntercepted(object, SET_PROPERTY, name, new Object[]{newValue}, () -> {
                    adaptee.setProperty(sender, object, name, newValue, useSuper, fromInsideClass);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      }
    
      /**
       * Associates {@code newValue} with {@code key} in this map, and returns the value previously
       * associated with {@code key}, or zero if there was no such value.
       */
      @CanIgnoreReturnValue
      public long put(K key, long newValue) {
        return getAndUpdate(key, x -> newValue);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top