Skip to content

Commit 87ab12c

Browse files
gselzerctrueden
authored andcommitted
Add Computer7 and Computer8
Signed-off-by: Curtis Rueden <ctrueden@wisc.edu>
1 parent e6ebeea commit 87ab12c

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.scijava.ops.core.computer;
2+
3+
import org.scijava.ops.core.Consumer8;
4+
import org.scijava.param.Mutable;
5+
6+
@FunctionalInterface
7+
public interface Computer7<I1, I2, I3, I4, I5, I6, I7, O> extends Consumer8<I1, I2, I3, I4, I5, I6, I7, O> {
8+
void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, @Mutable O out);
9+
10+
@Override
11+
default void accept(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, O out) {
12+
compute(in1, in2, in3, in4, in5, in6, in7, out);
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.scijava.ops.core.computer;
2+
3+
import org.scijava.ops.core.Consumer9;
4+
import org.scijava.param.Mutable;
5+
6+
@FunctionalInterface
7+
public interface Computer8<I1, I2, I3, I4, I5, I6, I7, I8, O> extends Consumer9<I1, I2, I3, I4, I5, I6, I7, I8, O> {
8+
void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, @Mutable O out);
9+
10+
@Override
11+
default void accept(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, O out) {
12+
compute(in1, in2, in3, in4, in5, in6, in7, in8, out);
13+
}
14+
}

0 commit comments

Comments
 (0)