X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Finternal%2FRandomAccessValueSupport.java;h=a9c60b338c25b6d1e8d391171cd506e1749a9af8;hp=a86555827710fddaa454529937dea85173495158;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 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> entries(); - - /** - * Removes all value registrations from this registry. - * - * @return the set of previously registered values - */ - Collection> removeAll(); - -} +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> entries(); + + /** + * Removes all value registrations from this registry. + * + * @return the set of previously registered values + */ + Collection> removeAll(); + +}