Example usage for java.util.function IntPredicate and

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

Introduction

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

Prototype

default IntPredicate and(IntPredicate other) 

Source Link

Document

Returns a composed predicate that represents a short-circuiting logical AND 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.and(j).test(123));

}