X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Finternal%2FRandomAccessValueSupport.java;h=a9c60b338c25b6d1e8d391171cd506e1749a9af8;hb=d0e8f57df83c175bac2098412ee71646fb9ff0e9;hp=a86555827710fddaa454529937dea85173495158;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/internal/RandomAccessValueSupport.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/internal/RandomAccessValueSupport.java index a86555827..a9c60b338 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/internal/RandomAccessValueSupport.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/internal/RandomAccessValueSupport.java @@ -1,54 +1,54 @@ -package org.simantics.db.impl.internal; - -import java.util.Collection; - -import org.simantics.db.ExternalValueSupport; -import org.simantics.db.Resource; -import org.simantics.db.Session; -import org.simantics.utils.datastructures.Pair; - -/** - * A database {@link Session} service for registering and retrieving random - * access binary instances related to a session. - * - *
- * This service is internal to the implementation and must not be used - * elsewhere. - *
- * - * @author Tuukka Lehtonen - * - * @see ExternalValueSupport - */ -public interface RandomAccessValueSupport { - - /** - * Registers the specified value with the specified resource. - * - * @param resource - * @param data - * @throws IllegalStateException - * if a previous registration already exists for the specified - * resource - */ - void put(Resource resource, ResourceData data); - - /** - * @param Resource - * @return currently registered value attached to the specified resource - */ - ResourceData get(Resource resource); - - /** - * @return currently registered entries - */ - Collection+ * This service is internal to the implementation and must not be used + * elsewhere. + *
+ * + * @author Tuukka Lehtonen + * + * @see ExternalValueSupport + */ +public interface RandomAccessValueSupport { + + /** + * Registers the specified value with the specified resource. + * + * @param resource + * @param data + * @throws IllegalStateException + * if a previous registration already exists for the specified + * resource + */ + void put(Resource resource, ResourceData data); + + /** + * @param Resource + * @return currently registered value attached to the specified resource + */ + ResourceData get(Resource resource); + + /** + * @return currently registered entries + */ + Collection