]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/internal/RandomAccessValueSupport.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / internal / RandomAccessValueSupport.java
index a86555827710fddaa454529937dea85173495158..a9c60b338c25b6d1e8d391171cd506e1749a9af8 100644 (file)
@@ -1,54 +1,54 @@
-package org.simantics.db.impl.internal;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.db.ExternalValueSupport;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.Session;\r
-import org.simantics.utils.datastructures.Pair;\r
-\r
-/**\r
- * A database {@link Session} service for registering and retrieving random\r
- * access binary instances related to a session.\r
- * \r
- * <p>\r
- * This service is internal to the implementation and must not be used\r
- * elsewhere.\r
- * </p>\r
- * \r
- * @author Tuukka Lehtonen\r
- * \r
- * @see ExternalValueSupport\r
- */\r
-public interface RandomAccessValueSupport {\r
-\r
-       /**\r
-        * Registers the specified value with the specified resource.\r
-        * \r
-        * @param resource\r
-        * @param data\r
-        * @throws IllegalStateException\r
-        *             if a previous registration already exists for the specified\r
-        *             resource\r
-        */\r
-       void put(Resource resource, ResourceData data);\r
-\r
-       /**\r
-        * @param Resource\r
-        * @return currently registered value attached to the specified resource\r
-        */\r
-       ResourceData get(Resource resource);\r
-\r
-       /**\r
-        * @return currently registered entries\r
-        */\r
-       Collection<Pair<Resource, ResourceData>> entries();\r
-\r
-       /**\r
-        * Removes all value registrations from this registry.\r
-        * \r
-        * @return the set of previously registered values\r
-        */\r
-       Collection<Pair<Resource, ResourceData>> removeAll();\r
-\r
-}\r
+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.
+ * 
+ * <p>
+ * This service is internal to the implementation and must not be used
+ * elsewhere.
+ * </p>
+ * 
+ * @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<Pair<Resource, ResourceData>> entries();
+
+       /**
+        * Removes all value registrations from this registry.
+        * 
+        * @return the set of previously registered values
+        */
+       Collection<Pair<Resource, ResourceData>> removeAll();
+
+}