Skip to content

Instantly share code, notes, and snippets.

@manuartero
Created August 11, 2017 12:24
Show Gist options
  • Save manuartero/36567365665cc28872f90b1b9c7199a6 to your computer and use it in GitHub Desktop.
Save manuartero/36567365665cc28872f90b1b9c7199a6 to your computer and use it in GitHub Desktop.
Java 8 Functional Interfaces
Java Human
Consumer<T> (t) -> void
BiConsumer<T,U> (t, u) -> void
Supplier<R> () -> r
Function<T,R> (t) -> r
BiFunction<T,U,R> (t, u) -> r
Predicate<T> (t) -> boolean
BiPredicate<T,U> (t, u) -> boolean
@manuartero
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment