RFR: 8266571: Sequenced Collections
Grzegorz Piwowarek
duke at openjdk.org
Mon Mar 20 23:45:08 UTC 2023
On Tue, 8 Feb 2022 17:23:38 GMT, Stuart Marks <smarks at 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
More information about the core-libs-dev
mailing list