UnBoUnDeD Blog

Group by n fields in Java like SQL using streams API 0

Group by n fields in Java like SQL using streams API

Interface Aggregatable.java: This interface should be implemented by class on which aggregation can be run. Class Employee.java: Employee POJO implementing Aggregatable. Please note the override add method which defines aggregation strategy. Class Field.java: Field...

Java 8 streams API handbook 0

Java 8 streams API handbook

Java 8 streams API handbook lists few example on converting list to map or map to list which is used in daily coding practices to reduce the line of code and make it more...