Example usage for java.util.function DoubleUnaryOperator identity

List of usage examples for java.util.function DoubleUnaryOperator identity

Introduction

In this page you can find the example usage for java.util.function DoubleUnaryOperator identity.

Prototype

static DoubleUnaryOperator identity() 

Source Link

Document

Returns a unary operator that always returns its input argument.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleUnaryOperator id = DoubleUnaryOperator.identity();

    System.out.println(id.applyAsDouble(3.14));
}