Skip to content

Commit 9630c8a

Browse files
committed
Added Effect and TryEffect with arity 0 to 8
1 parent f86ba89 commit 9630c8a

18 files changed

+181
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect0 {
7+
8+
void f();
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect1<A> {
7+
8+
void f(A a);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect2<A, B> {
7+
8+
void f(A a, B b);
9+
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect3<A, B, C> {
7+
8+
void f(A a, B b, C c);
9+
10+
}
11+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect4<A, B, C, D> {
7+
8+
void f(A a, B b, C c, D d);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect5<A, B, C, D, E> {
7+
8+
void f(A a, B b, C c, D d, E e);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect6<A, B, C, D, E, F> {
7+
8+
void f(A a, B b, C c, D d, E e, F f);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect7<A, B, C, D, E, F, G> {
7+
8+
void f(A a, B b, C c, D d, E e, F f, G g);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface Effect8<A, B, C, D, E, F, G, H> {
7+
8+
void f(A a, B b, C c, D d, E e, F f, G g, H h);
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package fj.function;
2+
3+
/**
4+
* Created by mperry on 28/08/2014.
5+
*/
6+
public interface TryEffect0<Z extends Exception> {
7+
8+
void f() throws Z;
9+
10+
}

0 commit comments

Comments
 (0)