diff src/main/java/fj/function/Try1.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/Try1.java	Fri Mar 20 21:04:03 2015 +0900
@@ -0,0 +1,16 @@
+package fj.function;
+
+/**
+ * A transformation function from <code>A</code> to <code>B</code> that may throw an <code>Exception</code>.
+ *
+ * Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F</code>.
+ *
+ * @see fj.Try#f
+ * @version %build.number%
+ */
+
+public interface Try1<A, B, Z extends Exception> {
+
+    B f(A a) throws Z;
+
+}