Home | History | Annotate | Download | only in concurrent

Lines Matching refs:newValue

274     long newValue = random.nextInt(MAX_ADDEND);
277 long result = map.put(key, newValue);
279 assertEquals(newValue, after);
281 newValue += newValue;
332 long newValue = random.nextInt(MAX_ADDEND);
335 long result = map.putIfAbsent(key, newValue);
338 assertEquals(before == 0 ? newValue : before, after);
342 result = map.putIfAbsent(key, newValue);
346 assertEquals(newValue, after);
350 result = map.putIfAbsent(key, newValue);
354 assertEquals(newValue, after);
356 newValue += newValue;
384 long newValue = random.nextInt(MAX_ADDEND);
387 assertFalse(map.replace(key, before + 1, newValue + 1));
388 assertFalse(map.replace(key, before - 1, newValue - 1));
389 assertTrue(map.replace(key, before, newValue));
391 assertEquals(newValue, after);
392 newValue += newValue;
424 long newValue = random.nextInt(MAX_ADDEND);
426 map.put(key, newValue);
435 newValue += newValue;
467 long newValue = random.nextInt(MAX_ADDEND);
469 map.put(key, newValue);
473 assertFalse(map.remove(key, newValue + 1));
474 assertFalse(map.remove(key, newValue - 1));
475 assertTrue(map.remove(key, newValue));
479 newValue += newValue;