Skip to content

Commit 03065e9

Browse files
committed
Adding javadoc
1 parent 8cf4050 commit 03065e9

File tree

1 file changed

+9
-1
lines changed
  • src/main/java/com/jnape/palatable/lambda/functions

1 file changed

+9
-1
lines changed

src/main/java/com/jnape/palatable/lambda/functions/Fn2.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,16 @@ static <A, B, C> Fn2<A, B, C> curried(Fn1<A, Fn1<B, C>> curriedFn1) {
153153
return (a, b) -> curriedFn1.apply(a).apply(b);
154154
}
155155

156+
/**
157+
* Static method to aid inference.
158+
*
159+
* @param fn2 the {@link Fn2}
160+
* @param <A> the first input type
161+
* @param <B> the second input type
162+
* @param <C> the output type
163+
* @return the {@link Fn2}
164+
*/
156165
static <A, B, C> Fn2<A, B, C> fn2(Fn2<A, B, C> fn2) {
157166
return fn2;
158167
}
159-
160168
}

0 commit comments

Comments
 (0)