Lines Matching refs:oldValue
1045 Object oldValue = new Object();
1051 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1055 assertFalse(segment.replace(key, hash, oldValue, newValue));
1062 assertSame(oldValue, segment.get(key, hash));
1063 assertTrue(segment.replace(key, hash, oldValue, newValue));
1068 assertFalse(segment.replace(key, hash, oldValue, newValue));
1074 assertSame(oldValue, segment.get(key, hash));
1076 assertFalse(segment.replace(key, hash, oldValue, newValue));
1089 Object oldValue = new Object();
1095 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1106 assertSame(oldValue, segment.get(key, hash));
1107 assertSame(oldValue, segment.replace(key, hash, newValue));
1113 assertSame(oldValue, segment.get(key, hash));
1128 Object oldValue = new Object();
1133 assertNull(segment.put(key, hash, oldValue, false));
1137 assertSame(oldValue, segment.put(key, hash, newValue, false));
1143 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1145 assertSame(oldValue, segment.get(key, hash));
1160 Object oldValue = new Object();
1165 assertNull(segment.put(key, hash, oldValue, true));
1169 assertSame(oldValue, segment.put(key, hash, newValue, true));
1171 assertSame(oldValue, segment.get(key, hash));
1175 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1177 assertSame(oldValue, segment.get(key, hash));
1306 Object oldValue = new Object();
1311 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1323 assertSame(oldValue, segment.get(key, hash));
1324 assertSame(oldValue, segment.remove(key, hash));
1332 assertSame(oldValue, segment.get(key, hash));
1345 Object oldValue = new Object();
1351 DummyValueReference<Object, Object> oldValueRef = DummyValueReference.create(oldValue, entry);
1363 assertSame(oldValue, segment.get(key, hash));
1364 assertTrue(segment.remove(key, hash, oldValue));
1372 assertSame(oldValue, segment.get(key, hash));
1375 assertSame(oldValue, segment.get(key, hash));
1378 assertSame(oldValue, segment.get(key, hash));
1380 assertFalse(segment.remove(key, hash, oldValue));