Example usage for java.util.function IntPredicate or

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

Introduction

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

Prototype

default IntPredicate or(IntPredicate 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) {
    IntPredicate i = (x) -> x < 0;

    IntPredicate j = (x) -> x == 0;

    System.out.println(i.or(j).test(123));

}