Java 24 Language & API Changes - Inside Java Newscast #81
Overview of Java 24's new language features and API changes, including the Stream Gatherer API and Class-File API.
Overview of Java 24's new language features and API changes, including the Stream Gatherer API and Class-File API.
Explores implementing a zip() operation for Java streams using the new Stream Gatherers preview API in Java 22.
Explores implementing a zip() operation for Java streams using the new Stream Gatherers preview API in Java 22.
A guide to implementing new custom operations in Java Streams using the proposed JEP 461 Gatherer API.
Explores a bug in Java 16's Stream::mapMulti when used to group elements, acting as a reverse flatMap operation.
Explains Java 16's Stream::mapMulti method as a faster alternative to flatMap, with code examples and performance considerations.
Explains Java 12's new teeing collector, a stream utility that forwards data to two collectors and merges results.
Explains the new Stream::iterate overload in Java 9, which adds a predicate to create finite streams, with examples and caveats.
Explores new methods added to Java's Optional class in Java 9, focusing on the stream() method and its practical applications for cleaner code.
Explores new Stream API methods added in Java 9, specifically the `takeWhile` and `dropWhile` operations for working with prefixes.
Highlights subtle bugs in Java Stream's findFirst() and findAny() when assuming unique results, and suggests fail-fast alternatives.