Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java 8 Functional Interfaces

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 by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Java #Functional #Interfaces
ADD COMMENT
Topic
Name
4+1 =