Java 8 Stream – FindFirst and FindAny
The Java 8 Streams has findFirst and findAny methods which will return the first element and an arbitrary element from a stream respectively.
Monthly Archives: October 2020
The Java 8 Streams has findFirst and findAny methods which will return the first element and an arbitrary element from a stream respectively.
The Prototype Pattern specifies the kind of objects to create using a prototypical instance and create new objects by copying this prototype
The Flyweight design pattern allows us to use sharing to support a large number of fine-grained objects efficiently in an application.
This post is on the anyMatch, allMatch and noneMatch methods which are short-circuiting terminal operations on a Java Stream.