Example usage for java.util.function IntPredicate negate

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

Introduction

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

Prototype

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

    System.out.println(i.negate().test(123));

}