----- Original Message ----- > From: "Remi Forax" <[email protected]> > To: "Stuart Marks" <[email protected]> > Cc: "core-libs-dev" <[email protected]> > Sent: Wednesday, November 2, 2022 7:27:02 PM > Subject: Re: [External] : Re: New candidate JEP: 431: Sequenced Collections
There is also the issue with equals/hashCode. You can test the equality of two lists using List.equals(), you can test the equality of two sets using Set.equals(), but you can not compare two SequencedCollection using equals. A SequencedCollection basically occupy the same lattice as Collection and do not provide enough guarantee to be different than Collection. Rémi
