JavaStreamanyMatch
count

anyMatchStream

allMatch

Returns whether any elements match the provided predicate.

Syntax

stream.anyMatch(predicate)