jdk/src/java.base/share/classes/java/util/stream/ForEachOps.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   128      * leaf instance of a {@code ForEachTask} will send elements to the same
   128      * leaf instance of a {@code ForEachTask} will send elements to the same
   129      * {@code TerminalSink} reference that is an instance of this class.
   129      * {@code TerminalSink} reference that is an instance of this class.
   130      *
   130      *
   131      * @param <T> the output type of the stream pipeline
   131      * @param <T> the output type of the stream pipeline
   132      */
   132      */
   133     static abstract class ForEachOp<T>
   133     abstract static class ForEachOp<T>
   134             implements TerminalOp<T, Void>, TerminalSink<T, Void> {
   134             implements TerminalOp<T, Void>, TerminalSink<T, Void> {
   135         private final boolean ordered;
   135         private final boolean ordered;
   136 
   136 
   137         protected ForEachOp(boolean ordered) {
   137         protected ForEachOp(boolean ordered) {
   138             this.ordered = ordered;
   138             this.ordered = ordered;