Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb6b0b3

Browse files
committed
Checkstyle Fixes
1 parentcd44ef3 commitcb6b0b3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎collection-pipeline/src/main/java/com/iluwatar/collectionpipeline/FunctionalProgramming.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public static List<String> getModelsAfter2000(List<Car> cars) {
6464
* Method to group cars by category using groupingBy
6565
*
6666
* @param cars {@link List} of {@link Car} to be used for grouping
67-
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with category
68-
* as key and cars belonging to that category as value
67+
* @return {@link Map} with category as key and cars belonging to that category as value
6968
*/
7069
publicstaticMap<String,List<Car>>getGroupingOfCarsByCategory(List<Car>cars) {
7170
returncars.stream().collect(Collectors.groupingBy(Car::getCategory));

‎collection-pipeline/src/main/java/com/iluwatar/collectionpipeline/ImperativeProgramming.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ public int compare(Car car1, Car car2) {
8484
* Method to group cars by category using for loops
8585
*
8686
* @param cars {@link List} of {@link Car} to be used for grouping
87-
* @return {@link Map} of {@link String} and {@link List} of {@link Car} with
88-
* category as key and cars belonging to that category as value
87+
* @return {@link Map} with category as key and cars belonging to that category as value
8988
*/
9089
publicstaticMap<String,List<Car>>getGroupingOfCarsByCategory(List<Car>cars) {
9190
Map<String,List<Car>>groupingByCategory =newHashMap<>();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp