Lines Matching defs:consumer
77 * @param consumer a {@code Consumer} that is to be invoked with each
80 void forEach(Consumer<? super T> consumer);
242 * @param action a consumer that is to be invoked with each
319 * @param consumer a {@code Consumer} that is to be invoked with each
325 default void forEach(Consumer<? super Integer> consumer) {
326 if (consumer instanceof IntConsumer) {
327 forEach((IntConsumer) consumer);
332 spliterator().forEachRemaining(consumer);
392 * @param consumer A {@code Consumer} that is to be invoked with each
398 default void forEach(Consumer<? super Long> consumer) {
399 if (consumer instanceof LongConsumer) {
400 forEach((LongConsumer) consumer);
405 spliterator().forEachRemaining(consumer);
465 * @param consumer A {@code Consumer} that is to be invoked with each
471 default void forEach(Consumer<? super Double> consumer) {
472 if (consumer instanceof DoubleConsumer) {
473 forEach((DoubleConsumer) consumer);
478 spliterator().forEachRemaining(consumer);