HCOLL-119 removed the use of " public <K, V> SharedHashMap<K, V> create(File file, Class<K> kClass, Class<V> vClass) "

This commit is contained in:
Rob Austin
2014-07-24 14:19:51 +01:00
parent ca899a90e2
commit 006a874ae2
4 changed files with 34 additions and 9 deletions
@@ -201,7 +201,10 @@ public class ChronicleMap8Test extends JSR166TestCase {
@Test
public void testCompute4() {
ChronicleMap map = map5();
map.compute(one, (x, y) -> null);
final BiFunction remappingFunction = (x, y) -> {
return null;
};
map.compute(one, remappingFunction);
assertFalse(map.containsKey(one));
}
@@ -259,9 +262,12 @@ public class ChronicleMap8Test extends JSR166TestCase {
@Test
public void testReplaceAll() {
ChronicleMap<Integer, String> map = map5();
map.replaceAll((x, y) -> {
final BiFunction<Integer, String, String> function = (x, y) -> {
return x > 3 ? "Z" : y;
});
};
map.replaceAll(function);
assertEquals("A", map.get(one));
assertEquals("B", map.get(two));
assertEquals("C", map.get(three));