Replace net.openhft.chronicle.hash.function.SerializableFunction usages with the same interface from Chronicle-Core, and delete net.openhft.chronicle.hash.function package

This commit is contained in:
leventov
2015-10-22 16:44:05 +03:00
parent c056b70259
commit 01ac66a830
7 changed files with 9 additions and 54 deletions
@@ -16,7 +16,6 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.hash.function.SerializableFunction;
import net.openhft.lang.MemoryUnit;
import org.junit.Test;
@@ -25,6 +24,7 @@ import java.io.IOException;
import java.nio.file.Paths;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
import java.util.function.Function;
import static org.junit.Assert.assertTrue;
@@ -34,7 +34,7 @@ public class MarkTest {
@Test(timeout = 25000)
public void inMemoryTest() {
test(builder -> builder.create());
test(ChronicleMapBuilder::create);
}
@Test
@@ -59,8 +59,9 @@ public class MarkTest {
}
}
private static void test(SerializableFunction<ChronicleMapBuilder<Integer, Integer>,
ChronicleMap<Integer, Integer>> createMap) {
private static void test(
Function<ChronicleMapBuilder<Integer, Integer>, ChronicleMap<Integer, Integer>>
createMap) {
long ms = System.currentTimeMillis();
try (ChronicleMap<Integer, Integer> map = createMap.apply(ChronicleMapBuilder
.of(Integer.class, Integer.class)