Interface Procedure2<T1,T2>
-
- All Superinterfaces:
java.util.function.BiConsumer<T1,T2>
,java.io.Serializable
- All Known Implementing Classes:
CheckedProcedure2
,CollectBooleanIterable.BooleanFunctionToProcedure
,CollectByteIterable.ByteFunctionToProcedure
,CollectCharIterable.CharFunctionToProcedure
,CollectDoubleIterable.DoubleFunctionToProcedure
,CollectFloatIterable.FloatFunctionToProcedure
,CollectIntIterable.IntFunctionToProcedure
,CollectLongIterable.LongFunctionToProcedure
,CollectShortIterable.ShortFunctionToProcedure
,Functions.BindProcedure2
,IfProcedureWith
,MapPutProcedure
,MultimapKeyValuesSerializingProcedure
,Procedures2.AddToCollection
,Procedures2.ProcedureAdapter
,Procedures2.RemoveFromCollection
,Procedures2.ThrowingProcedure2Adapter
- 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 java.util.function.BiConsumer<T1,T2>, java.io.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 element of the collection as the first argument, and the specified parameter as the second argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(T1 argument1, T2 argument2)
void
value(T1 argument1, T2 argument2)
-