]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils/src/org/simantics/utils/IOperation.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils / src / org / simantics / utils / IOperation.java
index 1ffcc348535c8d7fad92f8f55de769d782675660..91a3cf487a6d4ebfdab139e7449a3f213c1637e9 100644 (file)
@@ -1,29 +1,29 @@
-package org.simantics.utils;\r
-\r
-/**\r
- * An asynchronous operation returning some result.\r
- * \r
- * @author Hannu Niemistö\r
- */\r
-public interface IOperation<Result, E extends Exception> {\r
-    /**\r
-     * Waits that operation is completed. Either returns the\r
-     * result or throws an exception if the operation fails.\r
-     * If operation has already been completed when the method is called,\r
-     * returns immediately.\r
-     */\r
-    Result waitFor() throws E;\r
-\r
-    /**\r
-     * Tells whether the operation is already completed.\r
-     */\r
-    boolean isDone();\r
-\r
-    /**\r
-     * Adds a listener that is notified when the operation\r
-     * is completed. If the operation has already been completed\r
-     * when the method is called, calls the listener immediately\r
-     * (but asynchronously).\r
-     */\r
-    void addListener(IOperationListener<Result, E> listener);\r
+package org.simantics.utils;
+
+/**
+ * An asynchronous operation returning some result.
+ * 
+ * @author Hannu Niemist&ouml;
+ */
+public interface IOperation<Result, E extends Exception> {
+    /**
+     * Waits that operation is completed. Either returns the
+     * result or throws an exception if the operation fails.
+     * If operation has already been completed when the method is called,
+     * returns immediately.
+     */
+    Result waitFor() throws E;
+
+    /**
+     * Tells whether the operation is already completed.
+     */
+    boolean isDone();
+
+    /**
+     * Adds a listener that is notified when the operation
+     * is completed. If the operation has already been completed
+     * when the method is called, calls the listener immediately
+     * (but asynchronously).
+     */
+    void addListener(IOperationListener<Result, E> listener);
 }
\ No newline at end of file