Class BiFunctionExample
java.lang.Object
modernfeatures.lambda.builtinfunctionsdemo.BiFunctionExample
Demonstrates the use of
BiFunction
and its chaining with Function
.
Features covered:
- Creating a
BiFunction<T, U, R>
that takes two inputs and returns a result - Examples of adding integers, concatenating strings, and formatting messages
- Using
andThen()
to chain a BiFunction with a Function
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BiFunctionExample
public BiFunctionExample()
-
-
Method Details
-
main
-