2021-06-27

Java Stream.toList() Method

Add Stream.toList() Method added in jdk16. 

A new method toList has been added to the java.util.Stream interface. This introduces a potential source incompatibility with classes that implement or interfaces that extend the Stream interface and that also statically import a toList method from elsewhere, for example, Collectors.toList. References to such methods must be changed to use a qualified name instead of a static import.

No comments:

Post a Comment