Example usage for java.util.function DoubleConsumer andThen

List of usage examples for java.util.function DoubleConsumer andThen

Introduction

In this page you can find the example usage for java.util.function DoubleConsumer andThen.

Prototype

default DoubleConsumer andThen(DoubleConsumer after) 

Source Link

Document

Returns a composed DoubleConsumer that performs, in sequence, this operation followed by the after operation.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleConsumer d = (x) -> System.out.println(x * x);
    d.andThen(d).andThen(d).accept(0.23);
}