jdk/src/java.base/share/classes/java/util/stream/MatchOps.java
changeset 32649 2ee9017c7597
parent 25859 3317bb8137f4
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   247      * Boolean specific terminal sink to avoid the boxing costs when returning
   247      * Boolean specific terminal sink to avoid the boxing costs when returning
   248      * results.  Subclasses implement the shape-specific functionality.
   248      * results.  Subclasses implement the shape-specific functionality.
   249      *
   249      *
   250      * @param <T> The output type of the stream pipeline
   250      * @param <T> The output type of the stream pipeline
   251      */
   251      */
   252     private static abstract class BooleanTerminalSink<T> implements Sink<T> {
   252     private abstract static class BooleanTerminalSink<T> implements Sink<T> {
   253         boolean stop;
   253         boolean stop;
   254         boolean value;
   254         boolean value;
   255 
   255 
   256         BooleanTerminalSink(MatchKind matchKind) {
   256         BooleanTerminalSink(MatchKind matchKind) {
   257             value = !matchKind.shortCircuitResult;
   257             value = !matchKind.shortCircuitResult;