equal
deleted
inserted
replaced
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; |