Checkstyle Fixes

This commit is contained in:
nikhilbarar 2018-08-26 23:21:25 +05:30
parent cd44ef3c81
commit cb6b0b3600
2 changed files with 2 additions and 4 deletions

View File

@ -64,8 +64,7 @@ public class FunctionalProgramming {
* Method to group cars by category using groupingBy
*
* @param cars {@link List} of {@link Car} to be used for grouping
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with category
* as key and cars belonging to that category as value
* @return {@link Map} with category as key and cars belonging to that category as value
*/
public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
return cars.stream().collect(Collectors.groupingBy(Car::getCategory));

View File

@ -84,8 +84,7 @@ public class ImperativeProgramming {
* Method to group cars by category using for loops
*
* @param cars {@link List} of {@link Car} to be used for grouping
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with
* category as key and cars belonging to that category as value
* @return {@link Map} with category as key and cars belonging to that category as value
*/
public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
Map<String, List<Car>> groupingByCategory = new HashMap<>();