Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for removeIfZero (0.07 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
        assertFalse(map.removeIfZero(key));
    
        assertEquals(1, map.incrementAndGet(key));
        assertFalse(map.removeIfZero(key));
        assertEquals(2, map.incrementAndGet(key));
        assertFalse(map.removeIfZero(key));
        assertEquals(1, map.decrementAndGet(key));
        assertFalse(map.removeIfZero(key));
        assertEquals(0, map.decrementAndGet(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return map.remove(key, value);
      }
    
      /**
       * Atomically remove {@code key} from the map iff its associated value is 0.
       *
       * @since 20.0
       */
      @CanIgnoreReturnValue
      public boolean removeIfZero(K key) {
        return remove(key, 0);
      }
    
      /**
       * Removes all mappings from this map whose values are zero.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return false;
      }
    
      /**
       * Atomically remove {@code key} from the map iff its associated value is 0.
       *
       * @since 20.0
       */
      @CanIgnoreReturnValue
      public boolean removeIfZero(K key) {
        return remove(key, 0);
      }
    
      /**
       * Removes all mappings from this map whose values are zero.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top