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