Example usage for java.util.function LongPredicate and

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

Introduction

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

Prototype

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

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