Example usage for java.util.function LongPredicate or

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

Introduction

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

Prototype

default LongPredicate or(LongPredicate 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) {
    LongPredicate i = (l) -> l > 0;
    LongPredicate j = (l) -> l == 0;

    System.out.println(i.or(j).test(Long.MAX_VALUE));
}