Cleanup - More Lambdas to method references

This commit is contained in:
Jetz
2024-08-10 12:54:16 -04:00
parent 4614c6c0c9
commit f7d0929ea0
29 changed files with 62 additions and 68 deletions

View File

@@ -45,7 +45,7 @@ class Documents {
//System.out.println(docID);
//System.out.println(bow.getWords(docID).toString());
return bow.getWords(docID).stream()
.map(id -> vocabs.get(id))
.map(vocabs::get)
.collect(Collectors.toList());
}