Interface Function2<T1,T2,R>
- All Superinterfaces:
BiFunction<T1,,T2, R> Serializable
- All Known Implementing Classes:
AddFunction.AddCollectionFunction,AddFunction.AddDoubleFunction,AddFunction.AddFloatFunction,AddFunction.AddIntegerFunction,AddFunction.AddLongFunction,AddFunction.AddStringFunction,CheckedFunction2,Functions2.FunctionAdapter,Functions2.IntegerAddition,Functions2.MaxByFunction2,Functions2.MaxFunction2,Functions2.MinByFunction2,Functions2.MinFunction2,Functions2.ThrowingFunction2Adapter,MaxFunction.MaxDoubleFunction,MaxFunction.MaxIntegerFunction,MaxFunction.MaxLongFunction,MaxSizeFunction.MaxSizeCollectionFunction,MaxSizeFunction.MaxSizeMapFunction,MaxSizeFunction.MaxSizeStringFunction,MinFunction.MinDoubleFunction,MinFunction.MinIntegerFunction,MinFunction.MinLongFunction,MinSizeFunction.MinSizeCollectionFunction,MinSizeFunction.MinSizeMapFunction,MinSizeFunction.MinSizeStringFunction,MultiplyFunction.MultiplyDoubleFunction,MultiplyFunction.MultiplyIntegerFunction,MultiplyFunction.MultiplyLongFunction,SubtractFunction.SubtractDoubleFunction,SubtractFunction.SubtractIntegerFunction,SubtractFunction.SubtractLongFunction
- 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.
- Since:
- 1.0
- See Also:
-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
value
-
apply
- Specified by:
applyin interfaceBiFunction<T1,T2, R>
-