Last active
December 29, 2022 00:09
-
-
Save weilueluo/652ace1b895f579757f8a6b36fa74b0b to your computer and use it in GitHub Desktop.
Differences between Supplier, Consumer, Callable, Runnable, Function, BiFunction, Predicate, UnaryOperator, BinaryOperator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Supplier () -> x | |
Consumer x -> () | |
Callable () -> x throws ex | |
Runnable () -> () | |
Function x -> y | |
BiFunction x,y -> z | |
Predicate x -> boolean | |
UnaryOperator x1 -> x2 | |
BinaryOperator x1,x2 -> x3 | |
// source: https://stackoverflow.com/a/62434813/6880256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment