Function (Java SE 23 & JDK 23)
-
Method Summary
andThen(Function<? super R, ? extends V> after) Returns a composed function that first applies this function to its input, and then applies the
afterfunction to the result.Applies this function to the given argument.
compose(Function<? super V, ? extends T> before) Returns a composed function that first applies the
beforefunction to its input, and then applies this function to the result.identity()Returns a function that always returns its input argument.
-
Method Details
-
apply
-
compose
-
andThen
-
identity
-