0% found this document useful (0 votes)
6 views1 page

Java Functional Programming Overview

Uploaded by

Ikram Ben Afia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Java Functional Programming Overview

Uploaded by

Ikram Ben Afia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

=== Java Functional Programming

Predicate : - Accept one argument and return boolean result


- Is the input parameter of the methos [Link]
- It's main method is "test(T t)"

Function : - Accept object and return object


- It's method is "apply(T t)"

Consumer : - Accept one argument and return "no result"


- It's method is "accept(T t)"
- Used mainly to display result or do an operation without need to
return a result

Supplier : - Take "no argument" and it return a result


- It's method is "get()"

=== Java Streams

You might also like