diff src/main/java/fj/function/Try0.java @ 0:fe80c1edf1be

add getLoop
author tatsuki
date Fri, 20 Mar 2015 21:04:03 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/fj/function/Try0.java	Fri Mar 20 21:04:03 2015 +0900
@@ -0,0 +1,16 @@
+package fj.function;
+
+/**
+ * A product of <code>A</code> which may throw an <code>Exception</code>.
+ *
+ * Used to instantiate a lambda that may throw an <code>Exception</code> before converting to a <code>P1</code>.
+ *
+ * @see fj.Try#f
+ * @version %build.number%
+ */
+
+public interface Try0<A, Z extends Exception> {
+
+    A f() throws Z;
+
+}