Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for newValue3 (0.41 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. 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)
  3. 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)
  4. 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. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultMinimalDependency.java

        protected void validateMutation() {
            throw new UnsupportedOperationException("Minimal dependencies are immutable.");
        }
    
        @Override
        protected void validateMutation(Object currentValue, Object newValue) {
            validateMutation();
        }
    
        @Override
        public void copyTo(AbstractExternalModuleDependency target) {
            super.copyTo(target);
        }
    
        // Intentionally changes to the mutable version.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         *
         * @param key the key under which to store the session data, must not be {@code null}
         * @param oldValue the expected data currently associated with the key, may be {@code null}
         * @param newValue the data to associate with the key, may be {@code null} to remove the mapping
         * @return {@code true} if the key mapping was successfully updated from the old value to the new value,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/WorkInProgressRenderer.java

                unshow(operation.getParent());
            }
    
            // No more unused label? Try to resize.
            if (unusedProgressLabels.isEmpty()) {
                int newValue = operationIdToAssignedLabels.size() + 1;
                resizeTo(newValue);
                // At this point, the work-in-progress area may or may not have been resized due to maximum size constraint.
            }
    
            // Try to use a new label
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/RegularImmutableTable.java

       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
            "Duplicate key: (row=%s, column=%s), values: [%s, %s].",
            rowKey,
            columnKey,
            newValue,
            existingValue);
      }
    
      // redeclare to satisfy our test for b/310253115
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableTable.java

       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
            "Duplicate key: (row=%s, column=%s), values: [%s, %s].",
            rowKey,
            columnKey,
            newValue,
            existingValue);
      }
    
      // redeclare to satisfy our test for b/310253115
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ObjectHolder.java

         */
        T get();
    
        /**
         * Sets the value for this cache. An exclusive lock is held while setting the value.
         */
        void set(T newValue);
    
        /**
         * Replaces the value for this cache.
         *
         * An exclusive lock is held while the update action is executing.
         * The result of the update is returned.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top