Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testIncrementAndGet (0.12 sec)

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

        assertTrue(map.containsKey("2"));
        assertTrue(map.containsKey("3"));
        assertEquals(1L, map.get("1"));
        assertEquals(2L, map.get("2"));
        assertEquals(3L, map.get("3"));
      }
    
      public void testIncrementAndGet() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        String key = "key";
        for (int i = 0; i < ITERATIONS; i++) {
          long before = map.get(key);
          long result = map.incrementAndGet(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)
Back to top