"# TransferGoodsApplication"
Multi-Module Maven Application with Java Modules , still in progress adding new functionality
- Java - version 12
- gson - version 2.8.4
- maven - version 3.6
- Multi-Module Maven
- TestUnit junit 4.12
- junit-jupiter
download, compile and run, in module main file to compile main-1.0-SNAPSHOT-jar-with-dependencies.jar
return customerProductsMap.entrySet().stream().flatMap(f -> f.getValue().stream()).map(Product::getCategory).collect(Collectors.groupingBy(g -> g)) .entrySet() .stream() .collect(Collectors.toMap( Map.Entry::getKey, e -> e.getValue().size() )) .entrySet() .stream() .sorted(Comparator.comparing(Map.Entry::getValue)) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, Integer::sum, HashMap::new));
To-do list:
- more tests
Project is: in_progress"# TransferGoodsApplication" "# TransferGoodsApplication"