Lines Matching defs:action
40 * action for every element of a stream. Supported variants include unordered
61 * Constructs a {@code TerminalOp} that perform an action for every element
64 * @param action the {@code Consumer} that receives all elements of a
70 public static <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action,
72 Objects.requireNonNull(action);
73 return new ForEachOp.OfRef<>(action, ordered);
77 * Constructs a {@code TerminalOp} that perform an action for every element
80 * @param action the {@code IntConsumer} that receives all elements of a
85 public static TerminalOp<Integer, Void> makeInt(IntConsumer action,
87 Objects.requireNonNull(action);
88 return new ForEachOp.OfInt(action, ordered);
92 * Constructs a {@code TerminalOp} that perform an action for every element
95 * @param action the {@code LongConsumer} that receives all elements of a
100 public static TerminalOp<Long, Void> makeLong(LongConsumer action,
102 Objects.requireNonNull(action);
103 return new ForEachOp.OfLong(action, ordered);
107 * Constructs a {@code TerminalOp} that perform an action for every element
110 * @param action the {@code DoubleConsumer} that receives all elements of
115 public static TerminalOp<Double, Void> makeDouble(DoubleConsumer action,
117 Objects.requireNonNull(action);
118 return new ForEachOp.OfDouble(action, ordered);
369 private final Sink<T> action;
375 Sink<T> action) {
382 this.action = action;
394 this.action = parent.action;
490 node.forEach(action);
495 helper.wrapAndCopyInto(action, spliterator);