Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 153 for NewValue (0.13 sec)

  1. guava/src/com/google/common/collect/TableCollectors.java

        V oldValue = table.get(row, column);
        if (oldValue == null) {
          table.put(row, column, value);
        } else {
          V newValue = mergeFunction.apply(oldValue, value);
          if (newValue == null) {
            table.remove(row, column);
          } else {
            table.put(row, column, newValue);
          }
        }
      }
    
      private TableCollectors() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. pkg/ledger/smt_test.go

    	res = <-ch
    	newRoot := res.update
    	if bytes.Equal(root, newRoot) {
    		t.Fatal("trie not updated")
    	}
    	for i, newKey := range newKeys {
    		newValue, _ := smt.get(newRoot, newKey, nil, 0, smt.trieHeight)
    		if !bytes.Equal(newValues[i], newValue) {
    			t.Fatal("failed to get value")
    		}
    	}
    	// Check old keys are still stored
    	for i, key := range keys {
    		value, _ := smt.get(newRoot, key, nil, 0, smt.trieHeight)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

          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.
          bitCount.increment();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * iterator tests.
       *
       * @return the new container instance
       * @param newValue the new container instance
       */
      @CanIgnoreReturnValue
      protected C resetContainer(C newValue) {
        container = newValue;
        return container;
      }
    
      /**
       * @see #expectContents(java.util.Collection)
       * @param elements expected contents of {@link #container}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          V value = localCache.get(key);
          if (value != null) {
            return value;
          }
    
          try {
            V newValue = valueLoader.call();
            localCache.put(key, newValue);
            return newValue;
          } catch (Exception e) {
            throw new ExecutionException(e);
          }
        }
    
        @Override
        public @Nullable V getIfPresent(Object key) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/CrossTaskConstantChangesIncrementalJavaCompilationIntegrationTest.groovy

            impl.snapshot { run language.compileTaskName }
    
            when:
            source api: ["class B { final static $constantType x = $newValue; }"]
            run "impl:${language.compileTaskName}"
    
            then:
            impl.recompiledClasses('X')
    
            where:
            constantType | constantValue   | newValue
            'boolean'    | 'false'         | 'true'
            'byte'       | '(byte) 125'    | '(byte) 126'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/InstrumentingBackwardsCompatibilityVisitor.java

            }
    
            @Override
            public void visitLdcInsn(Object value) {
                Object newValue = fixAsmObjectForBackwardsCompatibility(value);
                super.visitLdcInsn(newValue);
            }
    
            @Override
            public void visitInvokeDynamicInsn(String name, String descriptor, Handle bootstrapMethodHandle, Object... bootstrapMethodArguments) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 08:17:26 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

            V previousValue = oldValue.get();
            if (previousValue == null) {
              V newValue = loader.load(key);
              return set(newValue) ? futureValue : Futures.immediateFuture(newValue);
            }
            ListenableFuture<V> newValue = loader.reload(key, previousValue);
            if (newValue == null) {
              return Futures.immediateFuture(null);
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  9. src/testing/testing_test.go

    			}
    		} else {
    			os.Unsetenv(test.key)
    		}
    
    		t.Run(test.name, func(t *testing.T) {
    			t.Setenv(test.key, test.newValue)
    			if os.Getenv(test.key) != test.newValue {
    				t.Fatalf("unexpected value after t.Setenv: got %s, want %s", os.Getenv(test.key), test.newValue)
    			}
    		})
    
    		got, exists := os.LookupEnv(test.key)
    		if got != test.initialValue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    		{cpuValue: uint64(100), expected: uint64(4000000000)},
    	}
    	var cpuCores = 4
    
    	for _, tc := range testCases {
    		p := perfCounterNodeStatsClient{}
    		newValue := p.convertCPUValue(cpuCores, tc.cpuValue)
    		assert.Equal(t, tc.expected, newValue)
    	}
    }
    
    func TestGetCPUUsageNanoCores(t *testing.T) {
    	// Scaled expected unit test values by the frequency the CPU perf counters are polled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top