In the AngularPortfolioMgr project, the logic for calculating the percentage difference between stock quotes is a stateful operation, since it requires access to the previous quote.
With Java 24, Stream Gatherers
are now finalized and offer a clean way to handle such stateful logic within the stream itself.