]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/src/org/simantics/graph/store/IStore.java
Check statement collisions
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / store / IStore.java
1 package org.simantics.graph.store;\r
2 \r
3 import gnu.trove.map.hash.TIntIntHashMap;\r
4 \r
5 import java.util.concurrent.Callable;\r
6 \r
7 public interface IStore {\r
8         void map(TIntIntHashMap map);\r
9         \r
10         static class MapTask implements Callable<Object> {\r
11                 IStore store;\r
12                 TIntIntHashMap map;             \r
13                 \r
14                 public MapTask(IStore store, TIntIntHashMap map) {\r
15                         this.store = store;\r
16                         this.map = map;\r
17                 }\r
18 \r
19                 @Override\r
20                 public Object call() throws Exception {\r
21                         store.map(map);\r
22                         return null;\r
23                 }               \r
24         }\r
25 }\r