Section 3.1: The java.util.function Package
Basic Models for java.util.function Interfaces
Model | Has Arguments | Returns a Value | Description |
---|---|---|---|
Predicate | yes | boolean | Tests argument and returns true or false. |
Function | yes | yes | Maps one type to another. |
Consumer | yes | no | Consumes input (returns nothing). |
Supplier | no | yes | Generates output (using no input). |
Many of the interfaces in the java.util.function ...