- 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.
@FunctionalInterface public interface Procedure2<T1,T2> extends BiConsumer<T1,T2>, Serializable
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 the element of the collection as the first argument, and the specified parameter as the second argument.