On Tue, 8 Feb 2022 17:23:38 GMT, Stuart Marks <sma...@openjdk.org> wrote:

> PR for Sequenced Collections implementation.

src/java.base/share/classes/java/util/SequencedCollection.java line 84:

> 82:      * the iterator() method, calls next() on it and returns the result.
> 83:      */
> 84:     default E getFirst() {

Too bad there's no `Optional<E>` here, but I assume that's because you don't 
want to mix two approaches within a class hierarchy?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/7387#discussion_r956666157

Reply via email to