Example usage for java.util.function IntConsumer andThen

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

Introduction

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

Prototype

default IntConsumer andThen(IntConsumer after) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    IntConsumer ic = (x) -> System.out.println(x);

    ic.andThen(ic).accept(3);

}