equal
deleted
inserted
replaced
165 * functionality, requesting cancellation when something has been found |
165 * functionality, requesting cancellation when something has been found |
166 * |
166 * |
167 * @param <T> The type of input element |
167 * @param <T> The type of input element |
168 * @param <O> The result type, typically an optional type |
168 * @param <O> The result type, typically an optional type |
169 */ |
169 */ |
170 private static abstract class FindSink<T, O> implements TerminalSink<T, O> { |
170 private abstract static class FindSink<T, O> implements TerminalSink<T, O> { |
171 boolean hasValue; |
171 boolean hasValue; |
172 T value; |
172 T value; |
173 |
173 |
174 FindSink() {} // Avoid creation of special accessor |
174 FindSink() {} // Avoid creation of special accessor |
175 |
175 |