- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testPutIfAbsent (0.08 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
final ConcurrentMap<String, Integer> delegate = new ConcurrentHashMap<>(); @Override protected ConcurrentMap<String, Integer> delegate() { return delegate; } } public void testPutIfAbsent() { TestMap map = new TestMap(); map.put("foo", 1); assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); assertEquals(Integer.valueOf(1), map.get("foo"));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 2.5K bytes - Viewed (0)