- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function2 is a two argument lambda which takes two arguments and returns a result of a transformation. A Function2 is used by RichIterable.injectInto() and RichIterable.collectWith() methods. See documentation of these methods for more details.