X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fstore%2FIStore.java;fp=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fstore%2FIStore.java;h=6b157679d0138643d8f5f4c47a47e5545c61a31d;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git 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 index 000000000..6b157679d --- /dev/null +++ b/bundles/org.simantics.graph/src/org/simantics/graph/store/IStore.java @@ -0,0 +1,25 @@ +package org.simantics.graph.store; + +import gnu.trove.map.hash.TIntIntHashMap; + +import java.util.concurrent.Callable; + +public interface IStore { + void map(TIntIntHashMap map); + + static class MapTask implements Callable { + IStore store; + TIntIntHashMap map; + + public MapTask(IStore store, TIntIntHashMap map) { + this.store = store; + this.map = map; + } + + @Override + public Object call() throws Exception { + store.map(map); + return null; + } + } +}