Uses of Interface
java.util.function.LongPredicate
| Package | Description |
|---|---|
| java.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
-
Uses of LongPredicate in java.util.function
Methods in java.util.function that return LongPredicate Modifier and Type Method Description default LongPredicateLongPredicate. and(LongPredicate other)Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.default LongPredicateLongPredicate. negate()Returns a predicate that represents the logical negation of this predicate.default LongPredicateLongPredicate. or(LongPredicate other)Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.Methods in java.util.function with parameters of type LongPredicate Modifier and Type Method Description default LongPredicateLongPredicate. and(LongPredicate other)Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.default LongPredicateLongPredicate. or(LongPredicate other)Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. -
Uses of LongPredicate in java.util.stream
Methods in java.util.stream with parameters of type LongPredicate Modifier and Type Method Description booleanLongStream. allMatch(LongPredicate predicate)Returns whether all elements of this stream match the provided predicate.booleanLongStream. anyMatch(LongPredicate predicate)Returns whether any elements of this stream match the provided predicate.default LongStreamLongStream. dropWhile(LongPredicate predicate)Returns, if this stream is ordered, a stream consisting of the remaining elements of this stream after dropping the longest prefix of elements that match the given predicate.LongStreamLongStream. filter(LongPredicate predicate)Returns a stream consisting of the elements of this stream that match the given predicate.static LongStreamLongStream. iterate(long seed, LongPredicate hasNext, LongUnaryOperator next)Returns a sequential orderedLongStreamproduced by iterative application of the givennextfunction to an initial element, conditioned on satisfying the givenhasNextpredicate.booleanLongStream. noneMatch(LongPredicate predicate)Returns whether no elements of this stream match the provided predicate.default LongStreamLongStream. takeWhile(LongPredicate predicate)Returns, if this stream is ordered, a stream consisting of the longest prefix of elements taken from this stream that match the given predicate.