Interface Procedure2<T1,​T2>

All Superinterfaces:
BiConsumer<T1,​T2>, Serializable
All Known Implementing Classes:
CheckedProcedure2, IfProcedureWith, MapPutProcedure, MultimapKeyValuesSerializingProcedure
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

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.
  • Method Summary

    Modifier and Type Method Description
    default void accept​(T1 argument1, T2 argument2)  
    void value​(T1 argument1, T2 argument2)  

    Methods inherited from interface java.util.function.BiConsumer