--- /dev/null
+package org.simantics.graph.store;\r
+\r
+import gnu.trove.map.hash.TIntIntHashMap;\r
+\r
+import java.util.concurrent.Callable;\r
+\r
+public interface IStore {\r
+ void map(TIntIntHashMap map);\r
+ \r
+ static class MapTask implements Callable<Object> {\r
+ IStore store;\r
+ TIntIntHashMap map; \r
+ \r
+ public MapTask(IStore store, TIntIntHashMap map) {\r
+ this.store = store;\r
+ this.map = map;\r
+ }\r
+\r
+ @Override\r
+ public Object call() throws Exception {\r
+ store.map(map);\r
+ return null;\r
+ } \r
+ }\r
+}\r