mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
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:
@@ -17,7 +17,7 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import com.google.common.primitives.Chars;
|
||||
import net.openhft.chronicle.hash.function.SerializableFunction;
|
||||
import net.openhft.chronicle.core.util.SerializableFunction;
|
||||
import net.openhft.chronicle.hash.replication.SingleChronicleHashReplication;
|
||||
import net.openhft.chronicle.hash.replication.TcpTransportAndNetworkConfig;
|
||||
import net.openhft.chronicle.map.fromdocs.BondVOInterface;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.core.io.Closeable;
|
||||
import net.openhft.chronicle.hash.function.SerializableFunction;
|
||||
import net.openhft.chronicle.core.util.SerializableFunction;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Assert;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user