Example usage for java.util.function DoublePredicate or

List of usage examples for java.util.function DoublePredicate or

Introduction

In this page you can find the example usage for java.util.function DoublePredicate or.

Prototype

default DoublePredicate or(DoublePredicate other) 

Source Link

Document

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoublePredicate dp = (d) -> d > 0;

    DoublePredicate dp1 = (d) -> d == 0;

    System.out.println(dp.or(dp1).test(0.5));

}