Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRemoveZeros (0.11 sec)

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

        assertTrue(map.containsKey(key));
    
        assertTrue(map.remove(key, 0L));
        assertEquals(0L, map.get(key));
        assertFalse(map.containsKey(key));
      }
    
      public void testRemoveZeros() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        Set<Object> nonZeroKeys = Sets.newHashSet();
        for (int i = 0; i < ITERATIONS; i++) {
          Object key = new Object();
          long value = i % 2;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top