List of usage examples for java.util.function DoubleUnaryOperator andThen
default DoubleUnaryOperator andThen(DoubleUnaryOperator after)
From source file:Main.java
public static void main(String[] args) { DoubleUnaryOperator square = (x) -> { return x * x; };/* w w w . java2s . c o m*/ DoubleUnaryOperator doubleValue = (x) -> { return 2 * x; }; System.out.println(doubleValue.andThen(square).applyAsDouble(3.14)); }