- 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.
A Procedure2 is used by forEachWith() methods and for MapIterate.forEachKeyValue(). In the forEachKeyValue() case the procedure takes the key as the first argument, and the value as the second. In the forEachWith() case the procedure takes the element of the collection as the first argument, and the specified parameter as the second argument.