Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newValue (0.19 sec)

  1. 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
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
    
        // same value
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
    
        // same value
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean replace(K key, @CheckForNull V oldValue, V newValue) {
        checkNotNull(key);
        checkNotNull(newValue);
        if (oldValue == null) {
          return false;
        }
        int hash = hash(key);
        return segmentFor(hash).replace(key, hash, oldValue, newValue);
      }
    
      @CheckForNull
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          }
        }
    
        @Override
        void putThread(Waiter waiter, Thread newValue) {
          UNSAFE.putObject(waiter, WAITER_THREAD_OFFSET, newValue);
        }
    
        @Override
        void putNext(Waiter waiter, @CheckForNull Waiter newValue) {
          UNSAFE.putObject(waiter, WAITER_NEXT_OFFSET, newValue);
        }
    
        /** Performs a CAS operation on the {@link #waiters} field. */
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

        @CheckForNull
        public T get() {
          return value;
        }
    
        public void checkAndSet(@CheckForNull T expected, @CheckForNull T newValue) {
          if (value != expected) {
            throw new ConcurrentModificationException();
          }
          value = newValue;
        }
    
        void clear() {
          value = null;
        }
      }
    
      private static final class AvlNode<E extends @Nullable Object> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

                    data.set(key, value);
                }
    
                @Override
                public <T> boolean replace(@Nonnull Key<T> key, @Nullable T oldValue, @Nullable T newValue) {
                    return data.set(key, oldValue, newValue);
                }
    
                @Nullable
                @Override
                @SuppressWarnings("unchecked")
                public <T> T get(@Nonnull Key<T> key) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

                  }
    
                  @Override
                  @ParametricNullness
                  public V setValue(@ParametricNullness V newValue) {
                    checkArgument(apply(getKey(), newValue));
                    return super.setValue(newValue);
                  }
                };
              }
            };
          }
        }
    
        @Override
        Set<K> createKeySet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top