Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for clearValueForTesting (0.17 sec)

  1. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // clear absent
        assertFalse(segment.clearValueForTesting(key, hash, valueRef));
    
        segment.setTableEntryForTesting(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.clearValueForTesting(key, hash, valueRef));
        // no notification sent with clearValue
        assertEquals(0, segment.count);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // clear absent
        assertFalse(segment.clearValueForTesting(key, hash, valueRef));
    
        segment.setTableEntryForTesting(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.clearValueForTesting(key, hash, valueRef));
        // no notification sent with clearValue
        assertEquals(0, segment.count);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MapMakerInternalMap.java

          } finally {
            unlock();
          }
        }
    
        /** Clears a value that has not yet been set, and thus does not require count to be modified. */
        @CanIgnoreReturnValue
        boolean clearValueForTesting(
            K key,
            int hash,
            WeakValueReference<K, V, ? extends InternalEntry<K, V, ?>> valueReference) {
          lock();
          try {
            AtomicReferenceArray<E> table = this.table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          } finally {
            unlock();
          }
        }
    
        /** Clears a value that has not yet been set, and thus does not require count to be modified. */
        @CanIgnoreReturnValue
        boolean clearValueForTesting(
            K key,
            int hash,
            WeakValueReference<K, V, ? extends InternalEntry<K, V, ?>> valueReference) {
          lock();
          try {
            AtomicReferenceArray<E> table = this.table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
Back to top