Example usage for java.util.stream LongStream noneMatch

List of usage examples for java.util.stream LongStream noneMatch

Introduction

In this page you can find the example usage for java.util.stream LongStream noneMatch.

Prototype

boolean noneMatch(LongPredicate predicate);

Source Link

Document

Returns whether no elements of this stream match the provided predicate.

Usage

From source file:Main.java

public static void main(String[] args) {
    LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE);
    boolean o = b.noneMatch(n -> n > 10);

    System.out.println(o);/*w  w  w .j av a  2  s.  c o m*/
}