Example usage for java.util.function LongConsumer andThen

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

Introduction

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

Prototype

default LongConsumer andThen(LongConsumer after) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LongConsumer i = (l) -> System.out.println(l);
    ;// w ww.j  av a 2 s .  c om
    i.andThen(i).accept(Long.MAX_VALUE);
}