Example usage for java.util.function LongPredicate negate

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

Introduction

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

Prototype

default LongPredicate negate() 

Source Link

Document

Returns a predicate that represents the logical negation of this predicate.

Usage

From source file:Main.java

public static void main(String[] args) {
    LongPredicate i = (l) -> l > 0;

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