Home | History | Annotate | Download | only in stream

Lines Matching refs:predicate

43 import java.util.function.Predicate;
78 * stream into another stream, such as {@link Stream#filter(Predicate)}), and a
155 * the given predicate.
160 * @param predicate a <a href="package-summary.html#NonInterference">non-interfering</a>,
162 * predicate to apply to each element to determine if it
166 Stream<T> filter(Predicate<? super T> predicate);
855 * predicate. May not evaluate the predicate on all elements if not
857 * {@code false} is returned and the predicate is not evaluated.
864 * predicate over the elements of the stream (for some x P(x)).
866 * @param predicate a <a href="package-summary.html#NonInterference">non-interfering</a>,
868 * predicate to apply to elements of this stream
870 * predicate, otherwise {@code false}
872 boolean anyMatch(Predicate<? super T> predicate);
875 * Returns whether all elements of this stream match the provided predicate.
876 * May not evaluate the predicate on all elements if not necessary for
878 * returned and the predicate is not evaluated.
885 * predicate over the elements of the stream (for all x P(x)). If the
889 * @param predicate a <a href="package-summary.html#NonInterference">non-interfering</a>,
891 * predicate to apply to elements of this stream
893 * provided predicate or the stream is empty, otherwise {@code false}
895 boolean allMatch(Predicate<? super T> predicate);
898 * Returns whether no elements of this stream match the provided predicate.
899 * May not evaluate the predicate on all elements if not necessary for
901 * returned and the predicate is not evaluated.
908 * negated predicate over the elements of the stream (for all x ~P(x)). If
912 * @param predicate a <a href="package-summary.html#NonInterference">non-interfering</a>,
914 * predicate to apply to elements of this stream
916 * provided predicate or the stream is empty, otherwise {@code false}
918 boolean noneMatch(Predicate<? super T> predicate);