Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created December 19, 2015 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeaholicguy/3361281c91c505333ae5 to your computer and use it in GitHub Desktop.
Save codeaholicguy/3361281c91c505333ae5 to your computer and use it in GitHub Desktop.
@FunctionalInterface
public interface BiFunction<T, U, R> {
R apply(T t, U u);
// some more default methods
}
@FunctionalInterface
public interface BinaryOperator extends BiFunction<T, T, T> {
// T apply(T t1, T t2);
// some more static methods
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment