Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for nowValue (0.08 sec)

  1. guava/src/com/google/common/util/concurrent/AtomicDouble.java

       * Sets to the given value.
       *
       * @param newValue the new value
       */
      public final void set(double newValue) {
        long next = doubleToRawLongBits(newValue);
        value = next;
      }
    
      /**
       * Eventually sets to the given value.
       *
       * @param newValue the new value
       */
      public final void lazySet(double newValue) {
        long next = doubleToRawLongBits(newValue);
        updater.lazySet(this, next);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

                }
              case SET_COUNT:
                {
                  int newValue = random.nextInt(3);
                  int oldValue = multiset.setCount(key, newValue);
                  deltas[keyIndex] += newValue - oldValue;
                  break;
                }
              case SET_COUNT_IF:
                {
                  int newValue = random.nextInt(3);
                  int oldValue = multiset.count(key);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // https://github.com/jspecify/jdk/issues/118
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 16:58:16 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
        RuntimeException cause = new RuntimeException();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Count.java

        value += delta;
      }
    
      public int addAndGet(int delta) {
        return value += delta;
      }
    
      public void set(int newValue) {
        value = newValue;
      }
    
      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // https://github.com/jspecify/jdk/issues/118
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 16:58:16 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

        doTestSet(e3());
      }
    
      private void doTestSet(E newValue) {
        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

                return valueRef.get();
              }
            };
    
        assertNull(cache.getIfPresent(new Object()));
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getIfPresent(new Object()));
      }
    
      public void testGetAllPresent_empty() {
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top