List of usage examples for java.util.function DoubleUnaryOperator compose
default DoubleUnaryOperator compose(DoubleUnaryOperator before)
From source file:Main.java
public static void main(String[] args) { DoubleUnaryOperator square = (x) -> { return x * x; };/*ww w . j a v a 2 s . co m*/ DoubleUnaryOperator doubleValue = (x) -> { return 2 * x; }; System.out.println(doubleValue.compose(square).applyAsDouble(3.14)); }