]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph/src/org/simantics/graph/store/IStore.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / store / IStore.java
diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/store/IStore.java b/bundles/org.simantics.graph/src/org/simantics/graph/store/IStore.java
new file mode 100644 (file)
index 0000000..6b15767
--- /dev/null
@@ -0,0 +1,25 @@
+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