Skip to content

Instantly share code, notes, and snippets.

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 TheLouisHong/1243defa52c3c252e930e804e799ca7e to your computer and use it in GitHub Desktop.
Save TheLouisHong/1243defa52c3c252e930e804e799ca7e to your computer and use it in GitHub Desktop.
Java: Table of Function Objects Signatures (Callable, Runnable, Function, ...)
Supplier () -> x
Consumer x -> ()
BiConsumer x, y -> ()
Callable () -> x throws ex
Runnable () -> ()
Function x -> y
BiFunction x,y -> z
Predicate x -> boolean
UnaryOperator x1 -> x2
BinaryOperator x1,x2 -> x3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment