Package akka.http.javadsl.common
Class PartialApplication$
java.lang.Object
akka.http.javadsl.common.PartialApplication$
Contains helpful methods to partially apply Functions for Java
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PartialApplication$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A,
B, R> Function<B, R> bindParameter
(BiFunction<A, B, R> f, A a) It partially applies function A.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
PartialApplication$
public PartialApplication$()
-
-
Method Details
-
bindParameter
It partially applies function A. In other words, it converts a 2 argument function to a 1 argument function by binding the first argument toa
. Here you can see an example:{@code BiFunction<Int, Int, Int> adder = (x, y) -> x + y; Function<Int, Int> add5 = bindParameter(adder, 5); add5(1); }
- Parameters:
f
- the function to partially applya
- the first parameter to partially apply- Returns:
- the function partially applied
-