Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 40 for oldValue (0.06 seconds)

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

          }
    
          while (true) {
            int oldValue = existingCounter.get();
            if (oldValue != 0) {
              try {
                int newValue = Math.addExact(oldValue, occurrences);
                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/AbstractBiMap.java

        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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  3. 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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 13:21:19 GMT 2025
    - 14K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          }
    
          while (true) {
            int oldValue = existingCounter.get();
            if (oldValue != 0) {
              try {
                int newValue = Math.addExact(oldValue, occurrences);
                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(oldValue);
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(newValue);
    
        // different value
        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(newValue);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 36K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(oldValue);
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(newValue);
    
        // different value
        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertThat(segment.get(key, hash)).isEqualTo(newValue);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 36K bytes
    - Click Count (0)
  7. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/AbstractBiMap.java

        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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java

         * For example "is_true": "value_to_replace" to "is_true": "value_replaced"
         *
         * @param oldValue the value that has to match and will be replaced
         * @param newValue the value used in the replacement
         */
        public void replaceIsTrue(String oldValue, Object newValue) {
            transformations.add(new ReplaceIsTrue(oldValue, MAPPER.convertValue(newValue, TextNode.class)));
        }
    
        /**
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 22.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            } else {
                final Object oldValue = dataMap.get(key);
                final Object[] oldValues;
                if (oldValue instanceof Object[]) {
                    oldValues = (Object[]) oldValue;
                } else if (oldValue instanceof Collection<?>) {
                    oldValues = ((Collection<?>) oldValue).toArray();
                } else {
                    oldValues = new Object[] { oldValue };
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
Back to Top